Add a component to a page without a markup in the page's html

View: New views
7 Messages — Rating Filter:   Alert me  

Add a component to a page without a markup in the page's html

by burnt99 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I have a JavaScript component that represents a data table, so there is nothing to visualize. However, I want to move this component to the Java world with Wicket. I would like to assign the component to the page (with .add()). But I don't want the user to add a <div> tag to the page's HTML file for each table, as in my opinion the HTML file is the view and as I have nothing visible for the table.

Cheers and thanks in advance

Re: Add a component to a page without a markup in the page's html

by greeklinux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

what is your aimed use case for the component?


burnt99 wrote:
Hi,

I have a JavaScript component that represents a data table, so there is nothing to visualize. However, I want to move this component to the Java world with Wicket. I would like to assign the component to the page (with .add()). But I don't want the user to add a <div> tag to the page's HTML file for each table, as in my opinion the HTML file is the view and as I have nothing visible for the table.

Cheers and thanks in advance

Re: Add a component to a page without a markup in the page's html

by burnt99 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have another component that can draw nice diagrams out of this table.


Hello,

what is your aimed use case for the component?


burnt99 wrote:
Hi,

I have a JavaScript component that represents a data table, so there is nothing to visualize. However, I want to move this component to the Java world with Wicket. I would like to assign the component to the page (with .add()). But I don't want the user to add a <div> tag to the page's HTML file for each table, as in my opinion the HTML file is the view and as I have nothing visible for the table.

Cheers and thanks in advance


Re: Add a component to a page without a markup in the page's html

by igor.vaynberg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

if you dont add a div in markup where in the markup should the table appear?

-igor

On Wed, Jul 9, 2008 at 2:10 AM, burnt99
<bernd.schaeufele@...> wrote:

>
> I have another component that can draw nice diagrams out of this table.
>
>
> greeklinux wrote:
>>
>> Hello,
>>
>> what is your aimed use case for the component?
>>
>>
>>
>> burnt99 wrote:
>>>
>>> Hi,
>>>
>>> I have a JavaScript component that represents a data table, so there is
>>> nothing to visualize. However, I want to move this component to the Java
>>> world with Wicket. I would like to assign the component to the page (with
>>> .add()). But I don't want the user to add a <div> tag to the page's HTML
>>> file for each table, as in my opinion the HTML file is the view and as I
>>> have nothing visible for the table.
>>>
>>> Cheers and thanks in advance
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Add-a-component-to-a-page-without-a-markup-in-the-page%27s-html-tp18356758p18357357.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Add a component to a page without a markup in the page's html

by burnt99 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is exactly the point. I don't want to make it appear in the markup. I just want to call some Javascript methods by a header contribution.

Thx!

igor.vaynberg wrote:
if you dont add a div in markup where in the markup should the table appear?

-igor

On Wed, Jul 9, 2008 at 2:10 AM, burnt99
<bernd.schaeufele@hpi.uni-potsdam.de> wrote:
>
> I have another component that can draw nice diagrams out of this table.
>
>
> greeklinux wrote:
>>
>> Hello,
>>
>> what is your aimed use case for the component?
>>
>>
>>
>> burnt99 wrote:
>>>
>>> Hi,
>>>
>>> I have a JavaScript component that represents a data table, so there is
>>> nothing to visualize. However, I want to move this component to the Java
>>> world with Wicket. I would like to assign the component to the page (with
>>> .add()). But I don't want the user to add a <div> tag to the page's HTML
>>> file for each table, as in my opinion the HTML file is the view and as I
>>> have nothing visible for the table.
>>>
>>> Cheers and thanks in advance
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Add-a-component-to-a-page-without-a-markup-in-the-page%27s-html-tp18356758p18357357.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

Re: Add a component to a page without a markup in the page's html

by Michael O'Cleirigh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

Your javascript isn't really a wicket component so you should implement
it as a behaviour then add it onto the page.

e.g. page.add (javascriptBehaviour);


This way your js code can be written into the header and if you register
the onload hook the rendering can be done automatically when the page is
viewed.

Mike

> This is exactly the point. I don't want to make it appear in the markup. I
> just want to call some Javascript methods by a header contribution.
>
> Thx!
>
>
> igor.vaynberg wrote:
>  
>> if you dont add a div in markup where in the markup should the table
>> appear?
>>
>> -igor
>>
>> On Wed, Jul 9, 2008 at 2:10 AM, burnt99
>> <bernd.schaeufele@...> wrote:
>>    
>>> I have another component that can draw nice diagrams out of this table.
>>>
>>>
>>> greeklinux wrote:
>>>      
>>>> Hello,
>>>>
>>>> what is your aimed use case for the component?
>>>>
>>>>
>>>>
>>>> burnt99 wrote:
>>>>        
>>>>> Hi,
>>>>>
>>>>> I have a JavaScript component that represents a data table, so there is
>>>>> nothing to visualize. However, I want to move this component to the
>>>>> Java
>>>>> world with Wicket. I would like to assign the component to the page
>>>>> (with
>>>>> .add()). But I don't want the user to add a <div> tag to the page's
>>>>> HTML
>>>>> file for each table, as in my opinion the HTML file is the view and as
>>>>> I
>>>>> have nothing visible for the table.
>>>>>
>>>>> Cheers and thanks in advance
>>>>>
>>>>>          
>>>>        
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Add-a-component-to-a-page-without-a-markup-in-the-page%27s-html-tp18356758p18357357.html
>>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@...
>>> For additional commands, e-mail: users-help@...
>>>
>>>
>>>      
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@...
>> For additional commands, e-mail: users-help@...
>>
>>
>>
>>    
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Add a component to a page without a markup in the page's html

by greeklinux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The only connection between HTML and wicket is through the Id.
You have to append the component to an id.



This is exactly the point. I don't want to make it appear in the markup. I just want to call some Javascript methods by a header contribution.

Thx!

igor.vaynberg wrote:
if you dont add a div in markup where in the markup should the table appear?

-igor

On Wed, Jul 9, 2008 at 2:10 AM, burnt99
<bernd.schaeufele@hpi.uni-potsdam.de> wrote:
>
> I have another component that can draw nice diagrams out of this table.
>
>
> greeklinux wrote:
>>
>> Hello,
>>
>> what is your aimed use case for the component?
>>
>>
>>
>> burnt99 wrote:
>>>
>>> Hi,
>>>
>>> I have a JavaScript component that represents a data table, so there is
>>> nothing to visualize. However, I want to move this component to the Java
>>> world with Wicket. I would like to assign the component to the page (with
>>> .add()). But I don't want the user to add a <div> tag to the page's HTML
>>> file for each table, as in my opinion the HTML file is the view and as I
>>> have nothing visible for the table.
>>>
>>> Cheers and thanks in advance
>>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/Add-a-component-to-a-page-without-a-markup-in-the-page%27s-html-tp18356758p18357357.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org