Hi,
I am no developer or something but why don't u add the params to the tr tag?
what I do when I use javascript validation, I add tags like <input type=text required=1> to my textboxes so my javascript can use it!
[code]
<table>
<thead>
<tr><th>ID</th><th>Name</th><th>Email</th><th>Status</th><th>Comments</th></tr>
</thead>
<tbody>
<tr id="wicket-rows" class="even" max=7>
<td><span id="wcn-id">Test ID</span></td>
<td><span id="wcn-name">Test Name</span></td>
<td><span id="wcn-email">Test EMail</span></td>
<td><span id="wcn-status">Test Status</span></td>
<td><span id="wcn-comments">Test Comments</span></td>
</tr>
</tbody>
</table>
[/code]Jonathan Locke wrote:
what about continuing with this xhtml idea? now it's completely namespaced, all in one file and loved by dreamweaver and browsers everywhere.
basically, the idea is that parameters to a tag can follow the tag in a <wicket:params> XHTML tag.
<table>
<thead>
<tr><th>ID</th><th>Name</th><th>Email</th><th>Status</th><th>Comments</th></tr>
</thead> <tbody> <tr id="wicket-rows" class="even"> <wicket:params maxRows = "7"/> <td><span id="wcn-id">Test ID</span></td> <td><span id="wcn-name">Test Name</span></td> <td><span id="wcn-email">Test EMail</span></td> <td><span id="wcn-status">Test Status</span></td> <td><span id="wcn-comments">Test Comments</span></td> </tr> </tbody> </table>
Johan Compagner wrote:
then we absoluutly don't agree on that. I choose wicket because it is plain html to java components No special tags like jsp ect. that is something i really really don't like anymore
But lets make an example.
The wicket example: ExamplePaging.html (of the display tag example)
<table>
<thead>
<tr><th>ID</th><th>Name</th><th>Email</th><th>Status</th><th>Comments</th></tr>
</thead> <tbody> <tr id="wcn-rows" class="even"> <td><span id="wcn-id">Test ID</span></td> <td><span id="wcn-name">Test Name</span></td> <td><span id="wcn-email">Test EMail</span></td> <td><span id="wcn-status">Test Status</span></td> <td><span id="wcn-comments">Test Comments</span></td> </tr> </tbody> </table>
now i want to give the <tr id="wcn-rows"> an extra parameter how many rows are to be displayed as once.
How would you do that? Dreamwever should be able to work with the html file And the html page should
render fine standalone in a browser. So that we can see the sample data ect.
johan Jonathan Locke wrote:
a whole separate xml file to look in just to find the parameters for a component? yuck. what a pain in the ass that will be. i'd rather have some custom tag that dreamweaver constantly complains about than that.
Johan Compagner wrote:
I have been thinking about this what the best way to handle these things
Just to make it clear with an example: PageableTable that has a property that has a windowSize of X
That is something that must be configurable by a the designer.
We could do it through the id: like <table id="wcn-xxxx;windowsize=10">
Or introduce a special tag like
<wicket-pageabletable windowsize="10">
or
<wicket><property ="windowsize" value="10"></wicket>
But i don't like both, if i have to choose then i would say the first one so through the id
I hate to have all kinds of special tags inside the html. Dreamweaver should then no these things ect ect.
I think the best solution is a seperate file (yes it suddenly does look like tapestry.... but lets keep it as simple as possible)
so every page or panel can have a file besides the Name.html like Name.xml in that file you could do this:
<component id="wcn-xxx"> <property name="windowSize">10</property> </component>
After this we could go one step further
<component id="wcn-xxx"> <class name="xxx.xxx.XXX'> <property name="windowSize">10</property> </component>
And then a html designer could place that component every where in the html page. It will be auto constructed (it has to have a xxx/default constructor)
Ofcourse this auto construct can also be given by something like this:
<span id="wicket-[class:xxxx.xxx.XXX]"
If we really want dynamic placement (html knows which components it can use but there you define the hierarchy not in javacode)
All this should just be something extra. The special xml file is not required. It can be used. It is just an option.
Johan
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop
