sounds pretty strange, show us your code
-igor
On 2/27/07, Swaroop Belur <[EMAIL PROTECTED]> wrote:
Hello all
In the find method there is this piece of code which compares a tag's ID
to another component's id
Code snippet
[ .......
markupStream.setCurrentIndex(component.markupIndex);
MarkupElement elem = markupStream.get();
if (elem instanceof ComponentTag)
{
ComponentTag tag = (ComponentTag)elem;
if (tag.getId().equals(component.getId()))
{
// Ok, found it
return markupStream;
}
}
.........
]
Background:
I am designing a page which has a collapsable panel. I feel that I have
called
setOutputMarkupId in the relevant places for the panels to be refreshed
because
when panel refresh happens the second time i click (a plus icon to expand
)
The problem is that It does NOT happen the first time and i simply click
the second time and panel refreshes.
[ i am using ajaxrequesttarget.replace and ajaxrequesttarget.addcomponent]
Problem
The problem i am facing is that the every odd numbered ajax request gives
a NPE for tag.getId()
So while debugging thru this section, I observed that eclipse shows the
stringified
expression of this tag (instance of ComponentTag) as </span> ..??
My Modification
I just added a null pointer check for tag.getID and then on it worked
properly for every odd numbered Ajax Request .
Any suggestions ?
-Swaroop
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user