thanks Johan for your reply. I did take look into your slides. 

We can generate HTML pages, we have no issue with it. But how to display
this newly created HTML pages which only exists in memory, there is no
physical file. And also to navigate to this new HTML page.

For example If I create a simple HTML page at runtime like below test.html.
How to display it and navigate to it. As it also requires corresponding
test.java. This is simple one. But what if we have wicket:Ids we need
construct the Java files with all the action listener also.

test.html 

<html>
<body>
   <h1>Hello world! </h1>
</body>
<html>


~Praveen



Johan Compagner wrote:
> 
> Generate on one side the html by a servlet or special template
> generator, that reads in your db data and generate the component
> structure on the other side.
> 
> Look at he slides i put on of the presentation that i did for the
> wicket user group in the netherlands
> 
> 2007/12/4, Pen <[EMAIL PROTECTED]>:
>>
>>
>> I looked into the example wicketstuff-crud, this is basically in memory
>> database with basic CRUD operation. this is not what exactly I am
>> looking.
>> Let me restate the question. We have application where in user can create
>> a
>> webpages using web designer by drag-n-drop where is html elements like
>> text,
>> image, selection box, combo box and save it in DB.
>> It will be Json format parse it to POJO and store in DB. for example
>> Image
>> object looks like this
>> which has got position, style, etc .
>> [{"position":({left:60, top:40}),
>> "size":({width:100,height:80}),
>> "positionTop":40,"positionLeft":60,"sizeWidth":100,"sizeHeight":80,
>> "cssClass":"",
>> "style":"left:60px;top:40px;width:100px;height:80px;",
>> ]}}]})
>>
>> Now we need to read from the DB and reconstruct the same Image object has
>> a
>> html page. We can construct the above object with HTML tags.
>> But the question is how to display this html pages, since it exists only
>> in
>> memory and also how to navigate to this newly created page.
>>
>> ~Praveen
>>
>>
>>
>>
>>
>>
>>
>> igor.vaynberg wrote:
>> >
>> > see how wicketstuff-crud does it in wicket-stuff svn
>> >
>> > -igor
>> >
>> >
>> > On Dec 3, 2007 6:30 PM, Pen <[EMAIL PROTECTED]> wrote:
>> >>
>> >>
>> >> I am a new wicker user.  We need to construct/generate  a HTML page
>> >> dynamically at runtime from the HTML elements like image and text. 
>> This
>> >> page only exists in memory(session/cache) and  there is no physical
>> file.
>> >> so
>> >> how to generate such page and corresponding java class. How this can
>> be
>> >> done
>> >> for static elements like image and text versus dynamically for form
>> >> submit.
>> >> Also how to navigate to this newly generated html page.
>> >>
>> >> ~Praveen
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/How-to-dynamically-generate-HTML-page--tf4940771.html#a14143413
>> >> Sent from the Wicket - User mailing list archive at Nabble.com.
>> >>
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-dynamically-generate-HTML-page--tf4940771.html#a14156946
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-dynamically-generate-HTML-page--tf4940771.html#a14158861
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to