wait until you discover we support embedded forms, that will really
screw with your mind...

-igor


On 11/1/07, Cristi Manole <[EMAIL PROTECTED]> wrote:
> i am so sorry for your time. looked for ages at that tag. seems i should
> have a vacation....
>
> is there a way to delete this thread? :)
>
> again, sorry for your time.
>
> On 11/1/07, Martijn Dashorst <[EMAIL PROTECTED]> wrote:
> >
> >    <form wiked:id = "tableForm" method = "post" action = "">
> >
> > maybe change this to wicket:id?
> >
> > Martijn
> >
> > On 11/1/07, Cristi Manole <[EMAIL PROTECTED]> wrote:
> > > thanks for your quick answer. here goes the problem details :)
> > >
> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
> > > http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
> > > <html xmlns="http://www.w3.org/1999/xhtml";>
> > > <head>
> > >     <wicket:head>
> > >         <style>
> > >             <!-- for autocomplete -->
> > >             div.wicket-aa {
> > >                 font-family: "Lucida Grande","Lucida Sans
> > > Unicode",Tahoma,Verdana;
> > >                 font-size: 12px;
> > >                 background-color: #333333;
> > >                 border-width: 1px;
> > >                 border-color: white;
> > >                 border-style: solid;
> > >                 padding: 2px;
> > >                 margin: 1px 0 0 0;
> > >                 text-align: left;
> > >             }
> > >             div.wicket-aa ul { list-style:none; padding: 2px; margin:0;}
> > >             div.wicket-aa ul li.selected { color: #FFCC33;
> > background-color:
> > > black; padding: 0px; margin:0;}
> > >         </style>
> > >     </wicket:head>
> > > </head>
> > >
> > > <body>
> > > <wicket:panel>
> > >     <form wicket:id = "searchForm" method = "post" action = "">
> > >     <table>
> > >         <tr>
> > >             <td>Owner: </td>
> > >             <td><input wicket:id = "owner" type = "text" value = "" name
> > =
> > > "owner" class = "moneyrulz" /></td>
> > >         </tr>
> > >         <tr>
> > >             <td>Name: </td>
> > >             <td><input wicket:id = "name" type = "text" value = "" name
> > =
> > > "name" class = "moneyrulz" /></td>
> > >         </tr>
> > >         <tr>
> > >             <td>Info: </td>
> > >             <td><input wicket:id = "info" type = "text" value = "" name
> > =
> > > "info" class = "moneyrulz" /></td>
> > >         </tr>
> > >         <tr>
> > >             <td>Description: </td>
> > >             <td><input wicket:id = "description" type = "text" value =
> > ""
> > > name = "description" class = "moneyrulz" /></td>
> > >         </tr>
> > >         <tr>
> > >             <td>Media: </td>
> > >             <td><input wicket:id = "media" type = "text" value = "" name
> > =
> > > "media" class = "moneyrulz" /></td>
> > >         </tr>
> > >         <tr>
> > >             <td>Category: </td>
> > >             <td><input wicket:id = "category" type = "text" value = ""
> > name
> > > = "category" class = "moneyrulz" /></td>
> > >         </tr>
> > >         <tr>
> > >             <td colspan="2"><input wicket:id = "ajax-submit-button" type
> > =
> > > "submit" id = "search" value = "Go" class = "moneyrulz"/></td>
> > >         </tr>
> > >     </table>
> > >     </form>
> > >     <br/>
> > >     <form wiked:id = "tableForm" method = "post" action = "">
> > >          <input type = "submit" value = "Delete Selected"/>
> > >     <!--
> > >         <span wicket:id = "group">
> > >             <p><input type="checkbox" wicket:id="groupselector">Toggle
> > Check
> > > All</input></p>
> > >             <table cellspacing = "0" wicket:id = "table">[table]</table>
> > >         </span>
> > >     -->
> > >       </form>
> > > </wicket:panel>
> > > </body>
> > > </html>
> > >
> > >
> > > public class MyMediaPanel extends Panel {
> > >
> > >     private static final long serialVersionUID = 5601408978271834993L;
> > >     MyMediaDAO selectedMyMedia;
> > >     MyAjaxFallbackDefaultDataTable ajaxTable;
> > >     SortableMyMediaDataProvider dataProvider = new
> > > SortableMyMediaDataProvider();
> > >
> > >     @SpringBean
> > >     private JdbcMyMedia jdbcMyMedia;
> > >
> > >     public MyMediaPanel(String id) {
> > >         super(id);
> > >
> > >         add(new MyMediaPanelSearchForm("searchForm"));
> > >
> > > //        Form tableForm = new Form("tableForm") {
> > > //            protected void onSubmit() {
> > > //            }
> > > //        };
> > >         //CheckGroup group = new CheckGroup("group", new
> > > ArrayList<Object>());
> > >         //group.add(new CheckGroupSelector("groupselector"));
> > >         //group.add(ajaxTable = createTable());
> > >         //tableForm.add(group);
> > >         add(new Form("tableForm"));
> > >         //add(group);
> > >     }
> > >
> > > [etc]
> > >
> > > 1. [MarkupContainer [Component id = tableForm, page =
> > > com.moneyrulz.mymedia.MyMediaMainPage, path = 2:mymediaPanel:
> > tableForm.Form,
> > > isVisible = true, isVersioned = false]]
> > >
> > > org.apache.wicket.WicketRuntimeException: The component(s) below failed
> > to
> > > render. A common problem is that you have added a component in code but
> > > forgot to reference it in the markup (thus the component will never be
> > > rendered).
> > >
> > > 1. [MarkupContainer [Component id = tableForm, page =
> > > com.moneyrulz.mymedia.MyMediaMainPage, path = 2:mymediaPanel:
> > tableForm.Form,
> > > isVisible = true, isVersioned = false]]
> > >
> > >     at org.apache.wicket.Page.checkRendering(Page.java:1057)
> > >     at org.apache.wicket.Page.renderPage(Page.java:871)
> > >     at
> > >
> > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond
> > > (BookmarkablePageRequestTarget.java:225)
> > >     at org.apache.wicket.request.AbstractRequestCycleProcessor.respond(
> > > AbstractRequestCycleProcessor.java:103)
> > >     at org.apache.wicket.RequestCycle.processEventsAndRespond(
> > > RequestCycle.java:1097)
> > >     at org.apache.wicket.RequestCycle.step(RequestCycle.java:1166)
> > >     at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1245)
> > >     at org.apache.wicket.RequestCycle.request(RequestCycle.java:489)
> > >     at org.apache.wicket.protocol.http.WicketFilter.doGet(
> > WicketFilter.java
> > > :319)
> > >     at org.apache.wicket.protocol.http.WicketFilter.doFilter(
> > > WicketFilter.java:169)
> > >     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> > > ApplicationFilterChain.java:235)
> > >     at org.apache.catalina.core.ApplicationFilterChain.doFilter(
> > > ApplicationFilterChain.java:206)
> > >     at org.apache.catalina.core.StandardWrapperValve.invoke(
> > > StandardWrapperValve.java:233)
> > >     at org.apache.catalina.core.StandardContextValve.invoke(
> > > StandardContextValve.java:175)
> > >     at org.apache.catalina.core.StandardHostValve.invoke(
> > > StandardHostValve.java:128)
> > >     at org.apache.catalina.valves.ErrorReportValve.invoke(
> > > ErrorReportValve.java:102)
> > >     at org.apache.catalina.core.StandardEngineValve.invoke(
> > > StandardEngineValve.java:109)
> > >     at org.apache.catalina.connector.CoyoteAdapter.service(
> > > CoyoteAdapter.java:263)
> > >     at org.apache.coyote.http11.Http11Processor.process(
> > Http11Processor.java
> > > :844)
> > >     at
> > > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
> > > Http11Protocol.java:584)
> > >     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(
> > JIoEndpoint.java
> > > :447)
> > >     at java.lang.Thread.run(Unknown Source)
> > >
> > >
> > > On 11/1/07, Dipu Seminlal <[EMAIL PROTECTED]> wrote:
> > > >
> > > > yes its  possible to have two forms in the same page.
> > > >
> > > > if you could provide some more details, you are likely to get
> > > > more helpful response :)
> > > >
> > > > Cheers
> > > > Dipu
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > On 11/1/07, Cristi Manole <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > Hello,
> > > > >
> > > > > Simple question :) :
> > > > >
> > > > > Is it possible to have two forms on the same page, without having
> > them
> > > > > imbricated?
> > > > >
> > > > > <form wicket:id = "form1">
> > > > > ...
> > > > > </form>
> > > > > <form wicket:id = "form2">
> > > > > ...
> > > > > </form>
> > > > >
> > > > >
> > > > > I'm asking because I get errors saying i did not add markup for
> > form2
> > > > when
> > > > > it is indeed in html code...  (and added to the page)
> > > > >
> > > > >
> > > > > Tks a lot
> > > > >
> > > >
> > >
> >
> >
> > --
> > Buy Wicket in Action: http://manning.com/dashorst
> > Apache Wicket 1.3.0-beta4 is released
> > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta4/
> >
> > ---------------------------------------------------------------------
> > 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]

Reply via email to