ah nvm that error is because i had a component with the same name in
the page as well as in a component cocntained in that page . . . not
sure if this is a bug but anywais it's easily fixable
now that error's gone , but the autocompleter just doesn't work
without any errors .
On 3/23/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
> I tried today . I'm getting an error which I was getting yesterday too
> at one point . When using the component within the page I'm beeing
> told :
>
> SEVERE: Error rendering Ajax Response:
> org.apache.hivemind.ApplicationRuntimeException: Component
> AutocompleteTest/autoCompleterTest must be enclosed by a form, but no
> Form component has been stored into the request cycle.
> [context:/WEB-INF/tests/AutocompleteTest.page, line 10, column 67]
>
> The component code :
> <h2>Auto test</h2>
>
> <form jwcid="@tacos:AjaxForm">
> <span class="auto_complete" jwcid="autoCompleterTest" />
> </form>
>
>
> On 3/22/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Yes, but i don't know if the public cvs is up-to-date.
> > Or you can wait a day or two for the release.
> >
> > From Cosmin Bucur <[EMAIL PROTECTED]>:
> >
> > > so Andy you have checked in something that should work without that ,
> > > should I give it a test run then ?
> > >
> > > On 3/22/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
> > > > i never use direct = true
> > > >
> > > > On 3/22/06, Andreas Andreou <[EMAIL PROTECTED]> wrote:
> > > > > i've done a small bug fix but also you should not use
> > > > > direct=true in these cases...
> > > > > From the docs:
> > > > > Direct, specifies whether or not to do a direct service call for
> > > > > component. This will improve the performance of the call dramatically,
> > > > > but will probably produce tons of exceptions and **problems if
> > > > > component
> > > > > is embedded in other components**.
> > > > >
> > > > > Cosmin Bucur wrote:
> > > > >
> > > > > >phew
> > > > > >
> > > > > >On 3/22/06, Andreas Andreou <[EMAIL PROTECTED]> wrote:
> > > > > >
> > > > > >
> > > > > >>ok, i see this behaviour too, and
> > > > > >>i think i know what is going on there...
> > > > > >>Working on it :)
> > > > > >>
> > > > > >>
> > > > > >>Cosmin Bucur wrote:
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >>>anybody ? is there anything extra I should do ? should I repost my
> > > > > >>>code ( which is preety much like the one before ) ? should I add a
> > > bug
> > > > > >>>?
> > > > > >>>
> > > > > >>>please let me know ,
> > > > > >>>Thanks
> > > > > >>>
> > > > > >>>On 3/21/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>>Sorry for not following up with this earlier , i've been trying
> > > > > >>>>new
> > > > > >>>>exciting sensations with help from Dell in the past few days that
> > > kept
> > > > > >>>>me buisy :)
> > > > > >>>>
> > > > > >>>>I believe I have isolated the problem to when the autocompleter is
> > > > > >>>>itself within a component . If it's directly in the page it works
> > > > > >>>>,
> > > if
> > > > > >>>>it's within a component it doesn't . I can't seem to get any
> > > > > >>>>errors
> > > on
> > > > > >>>>javaScript console . Just that nothing appears now . Both FF and
> > > MSIE
> > > > > >>>>.
> > > > > >>>>
> > > > > >>>>I have a page and a component which are identical and have been
> > > > > >>>>playing arround with them for the past 2 hours , can anybody else
> > > try
> > > > > >>>>to verify this behavivour ?
> > > > > >>>>
> > > > > >>>>Thanks ,
> > > > > >>>>Cosmin
> > > > > >>>>
> > > > > >>>>On 3/15/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
> > > > > >>>>
> > > > > >>>>
> > > > > >>>>
> > > > > >>>>
> > > > > >>>>>ok thanks , i will try to isolate the problem some more after a
> > > > > >>>>>cvs
> > > update
> > > > > >>>>>
> > > > > >>>>>On 3/15/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>
> > > > > >>>>>>Yeah strings should do it. I haven't replied back yet, because
> > > frankly I
> > > > > >>>>>>don't really know what the problem is :)
> > > > > >>>>>>
> > > > > >>>>>>Andreas has done a ton of bug fixing lately though, so you might
> > > want to be
> > > > > >>>>>>sure you're using the latest cvs version first to be sure it's
> > > > > >>>>>>not
> > > already
> > > > > >>>>>>accounted for.
> > > > > >>>>>>
> > > > > >>>>>>If not that, I plan on upgrading the prototype libs hopefully
> > > before Andreas
> > > > > >>>>>>pushes out the beta-2 release.
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>On 3/15/06, Cosmin Bucur < [EMAIL PROTECTED]> wrote:
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>oh and the objects in the ArrayList are Strings , that was
> > > something
> > > > > >>>>>>>that wasn't 100% clear to me from the Autocompleter , but I
> > > assumed it
> > > > > >>>>>>>needs Strings
> > > > > >>>>>>>
> > > > > >>>>>>>On 3/15/06, Cosmin Bucur <[EMAIL PROTECTED]> wrote:
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>>ELEMENTT has no properties ( in ff )
> > > > > >>>>>>>>
> > > > > >>>>>>>>On 3/15/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>
> > > > > >>>>>>>>>What error message are you getting? (If you do it in FF )
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>On 3/15/06, Cosmin Bucur < [EMAIL PROTECTED]> wrote:
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>I am trying to get the autocompleter working . I have done
> > > preety much
> > > > > >>>>>>>>>the same thing that I have seen in the demo component , and
> > > > > >>>>>>>>>it's
> > > not
> > > > > >>>>>>>>>working too great .
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>I can't seem to get the popup to show up . It showed up only
> > > once
> > > > > >>>>>>>>>aftetr a server restart and it was huge taking over the whole
> > > page .
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>The error that I'm getting is at this line :
> > > > > >>>>>>>>>for (var i = 0; i < element.childNodes.length; i++) { in the
> > > > > >>>>>>>>>cleanWhitespace method of prototype.js ... I wasn't able to
> > > track
> > > > > >>>>>>>>>much more about the error .
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>At first I tried it while downloading the code through an
> > > > > >>>>>>>>>ajax
> > > > > >>>>>>>>>response the way I normally try to do , but wasn't
> > > > > >>>>>>>>>successfull
> > > at
> > > > > >>>>>>>>>getting it to work . Then I moved it in the acutal .page
> > > component of
> > > > > >>>>>>>>>my application ( since i use only one , so basically i moved
> > > > > >>>>>>>>>it
> > > where
> > > > > >>>>>>>>>it loads through a normal request ) and that's when it worked
> > > ... once
> > > > > >>>>>>>>>. sort off .
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>Here is my code almost just like the demo :
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>jwc :
> > > > > >>>>>>>>><bean name="delegate"
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>class="org.apache.tapestry.valid.ValidationDelegate"/>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>> <bean name="textValidator" class="
> > > > > >>>>>>>>>org.apache.tapestry.valid.StringValidator">
> > > > > >>>>>>>>> <set name="required" value="true"/>
> > > > > >>>>>>>>> </bean>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> <component id="autoCompleterFname"
> > > > > >>>>>>>>> type="tacos:Autocompleter"
> > > >
> > > > > >>>>>>>>> <binding name="displayName"
> > > > > >>>>>>>>> value="literal:Note"
> > > />
> > > > > >>>>>>>>> <binding name="value" value="ognl:fnameValue" />
> > > > > >>>>>>>>> <binding name="listSource"
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>value="ognl:fnameSearchList" />
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>> <binding name="listener"
> > > value="listener:searchFname"
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>/>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>> <binding name="direct" value="ognl:true" />
> > > > > >>>>>>>>> </component>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> <property name="fnameValue" persist="session" />
> > > > > >>>>>>>>> <property name="lastValue" persist="session" />
> > > > > >>>>>>>>> <property name="fnameSearchList" initial-value="ognl:new
> > > > > >>>>>>>>>java.util.ArrayList()" />
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>.html :
> > > > > >>>>>>>>><style>
> > > > > >>>>>>>>> div.auto_complete {
> > > > > >>>>>>>>> width: 350px;
> > > > > >>>>>>>>> background: #fff;
> > > > > >>>>>>>>> }
> > > > > >>>>>>>>> div.auto_complete ul {
> > > > > >>>>>>>>> border:1px solid #888;
> > > > > >>>>>>>>> margin:0;
> > > > > >>>>>>>>> padding:0;
> > > > > >>>>>>>>> width:100%;
> > > > > >>>>>>>>> list-style-type:none;
> > > > > >>>>>>>>> }
> > > > > >>>>>>>>> div.auto_complete ul li {
> > > > > >>>>>>>>> margin:0;
> > > > > >>>>>>>>> padding:3px;
> > > > > >>>>>>>>> }
> > > > > >>>>>>>>> div.auto_complete ul li.selected {
> > > > > >>>>>>>>> background-color: #ffb;
> > > > > >>>>>>>>> }
> > > > > >>>>>>>>> div.auto_complete ul strong.highlight {
> > > > > >>>>>>>>> color: #800;
> > > > > >>>>>>>>> margin:0;
> > > > > >>>>>>>>> padding:0;
> > > > > >>>>>>>>> }
> > > > > >>>>>>>>> </style>
> > > > > >>>>>>>>> <div class="note" >
> > > > > >>>>>>>>> <h2>Patient Search</h2>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>><form jwcid="@tacos:AjaxForm">
> > > > > >>>>>>>>> <span class="auto_complete" jwcid="autoCompleterFname" />
> > > > > >>>>>>>>> <!-- <span class="auto_complete_lname"
> > > jwcid="autoCompleterLname"
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>/> -->
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>></form>
> > > > > >>>>>>>>> </div>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>.java :
> > > > > >>>>>>>>>public void searchFname(String search) {
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>setFnameSearchList(getManager().searchPatientByFName(search
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>>,
> > > > > >>>>>>>>>getLnameValue()));
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> }
> > > > > >>>>>>>>>
> > > > > >>>>>>>>> public abstract ArrayList getFnameSearchList();
> > > > > >>>>>>>>> public abstract void setFnameSearchList(ArrayList values);
> > > > > >>>>>>>>> /** form note value */
> > > > > >>>>>>>>> public abstract String getFnameValue();
> > > > > >>>>>>>>> public abstract String getLnameValue();
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>Any ideeas ?
> > > > > >>>>>>>>>Thanks ,
> > > > > >>>>>>>>>Cosmin
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>-------------------------------------------------------
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>>This SF.Net email is sponsored by xPML, a groundbreaking
> > > scripting
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>language
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>>that extends applications into web and mobile media. Attend
> > > > > >>>>>>>>>the
> > > live
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>webcast
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>>and join the prime developer group breaking into this new
> > > coding
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>territory!
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>>_______________________________________________
> > > > > >>>>>>>>>Tacos-devel mailing list
> > > > > >>>>>>>>>[email protected]
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>>>
> > > > > >>>>>>>-------------------------------------------------------
> > > > > >>>>>>>This SF.Net email is sponsored by xPML, a groundbreaking
> > > scripting
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>language
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>that extends applications into web and mobile media. Attend the
> > > live
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>webcast
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>and join the prime developer group breaking into this new
> > > > > >>>>>>>coding
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>territory!
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>http://sel.as-us.falkag.net/sel?cmdlnk&kid0944&bid$1720&dat1642
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>>>>>_______________________________________________
> > > > > >>>>>>>Tacos-devel mailing list
> > > > > >>>>>>>[email protected]
> > > > > >>>>>>>https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>>
> > > > > >>>>>>
> > > > > >>>>>>
> > > > > >>>-------------------------------------------------------
> > > > > >>>This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language
> > > > > >>>that extends applications into web and mobile media. Attend the
> > > > > >>>live
> > > webcast
> > > > > >>>and join the prime developer group breaking into this new coding
> > > territory!
> > > > >
> > >
> > >>>http://sel.as-us.falkag.net/sel?cmd_______________________________________________
> > > > > >>>Tacos-devel mailing list
> > > > > >>>[email protected]
> > > > > >>>https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>>
> > > > > >>-------------------------------------------------------
> > > > > >>This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language
> > > > > >>that extends applications into web and mobile media. Attend the live
> > > webcast
> > > > > >>and join the prime developer group breaking into this new coding
> > > territory!
> > > > >
> > > >>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > > > > >>_______________________________________________
> > > > > >>Tacos-devel mailing list
> > > > > >>[email protected]
> > > > > >>https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >
> > > > > >
> > > > > >-------------------------------------------------------
> > > > > >This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language
> > > > > >that extends applications into web and mobile media. Attend the live
> > > webcast
> > > > > >and join the prime developer group breaking into this new coding
> > > territory!
> > > > >
> > >
> > >http://sel.as-us.falkag.net/sel?cmd_______________________________________________
> > > > > >Tacos-devel mailing list
> > > > > >[email protected]
> > > > > >https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > -------------------------------------------------------
> > > > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language
> > > > > that extends applications into web and mobile media. Attend the live
> > > webcast
> > > > > and join the prime developer group breaking into this new coding
> > > territory!
> > > > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > > > > _______________________________________________
> > > > > Tacos-devel mailing list
> > > > > [email protected]
> > > > > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > > > >
> > > >
> > >
> > >
> > > -------------------------------------------------------
> > > This SF.Net email is sponsored by xPML, a groundbreaking scripting
> > > language
> > > that extends applications into web and mobile media. Attend the live
> > > webcast
> > > and join the prime developer group breaking into this new coding
> > > territory!
> > > http://sel.as-us.falkag.net/sel?cmd_______________________________________________
> > > Tacos-devel mailing list
> > > [email protected]
> > > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> > >
> > >
> >
> >
> > --
> >
> >
> >
> >
> > -------------------------------------------------------
> > This SF.Net email is sponsored by xPML, a groundbreaking scripting language
> > that extends applications into web and mobile media. Attend the live webcast
> > and join the prime developer group breaking into this new coding territory!
> > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
> > _______________________________________________
> > Tacos-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/tacos-devel
> >
>
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel