|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Add a component to a page without a markup in the page's htmlHi,
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 htmlHello,
what is your aimed use case for the component?
|
|
|
Re: Add a component to a page without a markup in the page's htmlI have another component that can draw nice diagrams out of this table.
|
|
|
Re: Add a component to a page without a markup in the page's htmlif 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 htmlThis 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!
|
|
|
Re: Add a component to a page without a markup in the page's htmlHello,
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 htmlThe only connection between HTML and wicket is through the Id.
You have to append the component to an id.
|
| Free Forum Powered by Nabble | Forum Help |