Wicket, Spring, JDO on Google App Engine - Sample Application

2009-07-12 Thread Nick Wiedenbrück
I've written a Wicket, Spring, JDO sample application that runs on the
Google App Engine. An introduction ist available as a blog post at
http://stronglytypedblog.blogspot.com/2009/07/wicket-spring-jdo-on-google-app-engine.html.
The source code is available at http://kenai.com/projects/wicketgae.

- cretzel


Re: AjaxUpdate FeedbackPanel And window.open popup

2009-07-12 Thread Martin Makundi
Hi!

What about PopupSettings, will I lose that?

**
Martin

2009/7/13 Juan Carlos Garcia M. :
>
> Hi,
>
> You can append a javascript to the AjaxRequestTarget something like:
>
> ajaxRequestTarget.add(myPanelToUpdate);
> ajaxRequestTarget.appendJavascript("alert('hello');");
>
> Check:
> http://www.mkyong.com/wicket/how-to-call-javscript-after-ajax-update-wicket/
>
> Hope this is what you looking for.
>
>
> MartinM wrote:
>>
>> Hi!
>>
>> Is it possible to simultaneously AjaxUpdate FeedbackPanel And
>> window.open popup ?
>>
>> I need to open a popup (external site) and simultaneously give
>> instructions on feedback panel. Anyone done this before?
>>
>> **
>> Martin
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>>
>
> --
> View this message in context: 
> http://www.nabble.com/AjaxUpdate-FeedbackPanel-And-window.open-popup-tp24452985p24453443.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: model detached many times

2009-07-12 Thread Ian MacLarty
On Fri, Jul 10, 2009 at 6:00 PM, Martijn
Dashorst wrote:
> If you share a model between components, then yes–each component will
> call detach on the model. That's encapsulation for you: one component
> doesn't know about another component, so it can't know that its model
> was detached.
>

Okay, thanks for clearing that up.

Ian.

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Rewrite page parameter to Login_page when session's expired

2009-07-12 Thread glooorrryyy

I want to get the page parameter from an expired_page...
Is it possible?


Mathias Nilsson wrote:
> 
> The application class
> 

-- 
View this message in context: 
http://www.nabble.com/Rewrite-page-parameter-to-Login_page-when-session%27s-expired-tp24403797p24455752.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Dropdownchoice missing (only when the page with Tinymce component) while scrolling the vertical scroll bar

2009-07-12 Thread 彭光裕
I find my Dropdownchoice missing while scrolling the vertical scroll bar.

After I look into the codes and compare with other web pages,
I find the dropdownchoice component only dispeared with Tinymce component in 
the same page.

Both Dropdownchoice and Timymce can work well without a small length web page.
But when the length of web page large enough and the vertical scroll bar showup 
, the strange thing happend.
When I move the vertical scroll bar, the Dropdownchoice gets dispeared.

I have removed all the CSS used in my web page,so I'm so sure this problem is 
lead by Tinymce CSS.

Does anyone find this strange condition happend?and how do you resolve this 
problem? thanks.






Re: intercept security check in wicket-auth-roles

2009-07-12 Thread Brill Pappin

Thanks for the heads up.

I'll have to look at the security project again, but one thing I  
really like about auth-roles is that is so amazingly simply to  
deploy... however, I don't use spring (I'm a detractors of frameworks  
that use metadata where code should be) so I don't think its going to  
be any use to me here.


- Brill



On 11-Jul-09, at 3:47 AM, Olger Warnier wrote:

The wicket-security framework has possibilities to integrate with  
SSO mechanisms. Next to that, you can integrate with spring-security  
and all authentication mechanisms supported by that.

The yahoo-bbauth sample may help you to get an idea on how that works.

Olger

On 11 jul 2009, at 08:09, Brill Pappin wrote:


I actually find it very usable and i love how simple it is...
does the new security framework have a similar simple method of  
securing a site like that?


- Brill

On 3-Jul-09, at 11:34 AM, Igor Vaynberg wrote:

wicket auth roles is an example, not a reusable framework. you  
should

copy and paste the code into your project and customize as needed.

-igor

On Fri, Feb 20, 2009 at 8:30 AM, Brill Pappin  
wrote:
I'm trying to integrate wicket-auth-roles with a token based SSO  
security

system.

I can't see where I can intercept the authentication sequence and
"auto-login" the user based on the token.
Essentially i want to catch the authentication request and  
authorize the

user based on a token before they are redirected to the login page.

Does anyone have a clue how I might go about doing that?

Unfortunately most places I've looked to over ride the sequence  
are marked
final for some reason, which makes things difficult. I'm actually  
at the
point now where I'm thinking of writing a new auth-roles based on  
the

current lib, but I thought I'd ask first.

... and no, I don't want to use the other more complex security  
lib...

auth-roles is very nice and simple to use and suitable for most
applications.

- Brill Pappin




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



RE: AjaxUpdate FeedbackPanel And window.open popup

2009-07-12 Thread Russell Simpkins

You could over-ride getAjaxCallDecorator() on your AjaxButton. e.g.
protected IAjaxCallDecorator getAjaxCallDecorator() { 
  return new AjaxCallDecorator() { 
public CharSequence decorateScript(CharSequence script) { return 
"window.open('http://www.google.com','newwindow');" + script; }};}
> Date: Mon, 13 Jul 2009 01:17:18 +0300
> Subject: AjaxUpdate FeedbackPanel And window.open popup
> From: martin.maku...@koodaripalvelut.com
> To: users@wicket.apache.org
> 
> Hi!
> 
> Is it possible to simultaneously AjaxUpdate FeedbackPanel And
> window.open popup ?
> 
> I need to open a popup (external site) and simultaneously give
> instructions on feedback panel. Anyone done this before?
> 
> **
> Martin
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 

_
Windows Live™ SkyDrive™: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_SD_25GB_062009

Re: AjaxUpdate FeedbackPanel And window.open popup

2009-07-12 Thread Juan Carlos Garcia M.

Hi,

You can append a javascript to the AjaxRequestTarget something like:

ajaxRequestTarget.add(myPanelToUpdate);
ajaxRequestTarget.appendJavascript("alert('hello');");

Check:
http://www.mkyong.com/wicket/how-to-call-javscript-after-ajax-update-wicket/

Hope this is what you looking for.


MartinM wrote:
> 
> Hi!
> 
> Is it possible to simultaneously AjaxUpdate FeedbackPanel And
> window.open popup ?
> 
> I need to open a popup (external site) and simultaneously give
> instructions on feedback panel. Anyone done this before?
> 
> **
> Martin
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AjaxUpdate-FeedbackPanel-And-window.open-popup-tp24452985p24453443.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



AjaxUpdate FeedbackPanel And window.open popup

2009-07-12 Thread Martin Makundi
Hi!

Is it possible to simultaneously AjaxUpdate FeedbackPanel And
window.open popup ?

I need to open a popup (external site) and simultaneously give
instructions on feedback panel. Anyone done this before?

**
Martin

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: Is it possible to register multiple behaviors for a field?

2009-07-12 Thread Martin Makundi
You could use ajax decorator which sort of appends callers.. I am not
exactly sure how in your particular situation, but you can try it out
and see how it works:

  public static final IAjaxCallDecorator BLUR_DECORATOR = new
IAjaxCallDecorator() {
public CharSequence decorateOnFailureScript(
CharSequence arg0) {
  return arg0;
}

public CharSequence decorateOnSuccessScript(
CharSequence arg0) {
  return arg0;
}

public CharSequence decorateScript(CharSequence arg0) {
  return "blur();" + arg0;
}
  };

Usage:
component.add(new
OnChangeAjaxBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
target.addChildren(dailyContainer, DropDownChoice.class);
}
/**
* @see
org.apache.wicket.ajax.AbstractDefaultAjaxBehavior#getAjaxCallDecorator()
*/
@Override
protected IAjaxCallDecorator getAjaxCallDecorator() {
return BLUR_DECORATOR;
}
});

**
Martin

2009/7/12 Kenneth NA :
>
>
> I want to register two behaviors for a textfield, is this possible, as I only 
> see the result and call to one of them?
>
>
> This is what I am trying to do:
> textfield.add(new ComponentVisualErrorBehavior("onblur", tf));
> textfield.add(new AjaxFormComponentUpdatingBehavior("onblur") { ... }
>
>
>
> _
> Vårkänslor och pirr i magen? Hitta din drömpartner här!
> http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Is it possible to register multiple behaviors for a field?

2009-07-12 Thread Kenneth NA

 
I want to register two behaviors for a textfield, is this possible, as I only 
see the result and call to one of them? 


This is what I am trying to do: 
textfield.add(new ComponentVisualErrorBehavior("onblur", tf));
textfield.add(new AjaxFormComponentUpdatingBehavior("onblur") { ... }



_
Vårkänslor och pirr i magen? Hitta din drömpartner här!
http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952

Re: MixedHybridUrlCodingStrategy wanted

2009-07-12 Thread Erik van Oosten
It is fairly easy to construct it yourself. Just look at the code of 
MixedParamUrlCodingStrategy, copy it and replace the class you're 
extending to the corresponding HybridUrlCodingStrategy.


Its also on the mailing list, search the archives. Lastly, the 
annotation based mounting project (forgot the name) contains it.


Regards,
Erik.



Vladimir Kovalyuk wrote:

Is there a worked combination of HybridUrlCodingStrategy and
MixedParamUrlCodingStrategy? What is missed in the latter is ability to stay
bookmarkable after reaction on actions.

  



--
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: getting child items of a ListView ListItem

2009-07-12 Thread Martin Makundi
BTW::: SHOW AFTER initializing callback.

**
Martin

2009/7/12 Martin Makundi :
> Yes. Why make it more complex :)?
>
> **
> Martin
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: getting child items of a ListView ListItem

2009-07-12 Thread Martin Makundi
Yes. Why make it more complex :)?

**
Martin

2009/7/12 Steve Swinsburg :
> Ah so you attach the callback to the modal in the Link onClick, not in the
> item itself?
>
> pseudocode:
>
> init modalwindow();
>
> listview {
>        populate item {
>                link {
>                        onClick {
>                                get item
>                                set content for modalwindow
>                                show modalwindow
>                                SETUP CALLBACK HERE?
>                        }
>                }
>                //I thought you meant here
>        }
> }
>
>
> So if you mean where its in CAPS then ok, I thought you meant in the Item
> section. Will give it a go.
>
> Steve
>
>
> On 11 Jul 2009, at 21:02, Martin Makundi wrote:
>
>>> Ok, except remember this is in a ListView so for each ListItem that I set
>>> the callback for, the single instance of the modal window is being
>>> updated
>>> to the latest callback. So when it fires, it will operate on the last
>>> item
>>> in the list.
>>
>> No. The callback is issued when you click the button.
>>
>> **
>> Martin
>>
>>>
>>>
>>>
>>> On 11 Jul 2009, at 13:43, Martin Makundi wrote:
>>>
> So you setup a callback when you set the content on the modalWindow?
> That
> could work nicely as well.

 Yes:

              modalWindow.setTitle(xx);
              modalWindow.setContent(yy);
              final AjaxButton ajaxButton = this;
              modalWindow.setWindowClosedCallback(new
 ModalWindow.WindowClosedCallback() {
                public void onClose(AjaxRequestTarget target) {
                  // Do your magic here
                  ...
                  target.addComponent(form);



 target.addComponent(AbstractInnerPanel.getFeedbackPanel(WizardPanel.this));
                }
              });
              modalWindow.show(target);
              MarkupUtils.resizeModalWindow(target, 850, 400);

> Here's the new structure for your perusal:

 Your java was the curious part, but try the example above, position
 the close callback together with showing it.

 **
 Martin

>
>
>
>
> On 11 Jul 2009, at 12:17, Martin Makundi wrote:
>
>>> Ok so I was doing that before but had an instance of a ModalWindow
>>> per
>>> ListItem, and the associated callback for each. Because it was all
>>> inside,
>>> it was self contained so I could do all the updating easily. But this
>>> mean
>>> many MW and callbacks per page.
>>
>> Sounds wild..
>>
>>> This also means the callback is outside so it doesn't know about the
>>> object that was clicked. I did this so it reduces the total number of
>>> objects
>>> on the page.
>>
>> Why not put the callback inside too.. I do that.
>>
>> **
>> Martin
>>
>>> cheers.
>>>
>>>
>>> On 11 Jul 2009, at 12:00, Martin Makundi wrote:
>>>
> So I am using:
> -in ListItem and the Link onClick, get the parent Item. Keep a
> reference
> to
> this.

 Why don't you already add all the necessary children to the
 ajaxRequestTarget here where you have the references?

 **
 Martin

>
> On 11 Jul 2009, at 11:36, Martin Makundi wrote:
>
>>> I've got one Modal/handler per ListView so it needs to know what
>>> item
>>> it
>>> was
>>> clicked from so i still need to get a handle on the component
>>> itself
>>> to
>>> update it, even if it gets its text from that model yes?
>>
>> No. You can update multiple components with
>> ajaxRequestTarget.addChildren or you can differentiate with
>> component
>> class if absolutely necessary. Or you can repaint the whole
>> listView.
>>
>> **
>> Martin
>>
>>
>>
>>>
>>> Thanks.
>>>
>>>
>>> On 11 Jul 2009, at 10:43, Martin Makundi wrote:
>>>
 It would be better design to make the span update itself using
 an
 abstract readnly model:

 new Label("automatic", new AbstractReadOnlyModel() {
 public String getObject() {
  return "whatever value you need" +
 getSession().getCurrentValueOrState();
 }
 });.

 **
 Martin

 2009/7/11 Steve Swinsburg :
>
> Yeah that sounds like what I need. I need to update some text
> in
> a
> span
> thats inside my ListItem once I do some processing.
>
> Thanks,
> Steve
>
>

Re: getting child items of a ListView ListItem

2009-07-12 Thread Steve Swinsburg
Ah so you attach the callback to the modal in the Link onClick, not in  
the item itself?


pseudocode:

init modalwindow();

listview {
populate item {
link {
onClick {
get item
set content for modalwindow
show modalwindow
SETUP CALLBACK HERE?
}
}
//I thought you meant here
}
}


So if you mean where its in CAPS then ok, I thought you meant in the  
Item section. Will give it a go.


Steve


On 11 Jul 2009, at 21:02, Martin Makundi wrote:

Ok, except remember this is in a ListView so for each ListItem that  
I set
the callback for, the single instance of the modal window is being  
updated
to the latest callback. So when it fires, it will operate on the  
last item

in the list.


No. The callback is issued when you click the button.

**
Martin





On 11 Jul 2009, at 13:43, Martin Makundi wrote:

So you setup a callback when you set the content on the  
modalWindow? That

could work nicely as well.


Yes:

  modalWindow.setTitle(xx);
  modalWindow.setContent(yy);
  final AjaxButton ajaxButton = this;
  modalWindow.setWindowClosedCallback(new
ModalWindow.WindowClosedCallback() {
public void onClose(AjaxRequestTarget target) {
  // Do your magic here
  ...
  target.addComponent(form);


target 
.addComponent 
(AbstractInnerPanel.getFeedbackPanel(WizardPanel.this));

}
  });
  modalWindow.show(target);
  MarkupUtils.resizeModalWindow(target, 850, 400);


Here's the new structure for your perusal:


Your java was the curious part, but try the example above, position
the close callback together with showing it.

**
Martin






On 11 Jul 2009, at 12:17, Martin Makundi wrote:

Ok so I was doing that before but had an instance of a  
ModalWindow per
ListItem, and the associated callback for each. Because it was  
all

inside,
it was self contained so I could do all the updating easily.  
But this

mean
many MW and callbacks per page.


Sounds wild..

This also means the callback is outside so it doesn't know  
about the
object that was clicked. I did this so it reduces the total  
number of

objects
on the page.


Why not put the callback inside too.. I do that.

**
Martin


cheers.


On 11 Jul 2009, at 12:00, Martin Makundi wrote:


So I am using:
-in ListItem and the Link onClick, get the parent Item. Keep a
reference
to
this.


Why don't you already add all the necessary children to the
ajaxRequestTarget here where you have the references?

**
Martin



On 11 Jul 2009, at 11:36, Martin Makundi wrote:

I've got one Modal/handler per ListView so it needs to know  
what

item
it
was
clicked from so i still need to get a handle on the component
itself
to
update it, even if it gets its text from that model yes?


No. You can update multiple components with
ajaxRequestTarget.addChildren or you can differentiate with
component
class if absolutely necessary. Or you can repaint the whole
listView.

**
Martin





Thanks.


On 11 Jul 2009, at 10:43, Martin Makundi wrote:

It would be better design to make the span update itself  
using an

abstract readnly model:

new Label("automatic", new AbstractReadOnlyModel() {
public String getObject() {
 return "whatever value you need" +
getSession().getCurrentValueOrState();
}
});.

**
Martin

2009/7/11 Steve Swinsburg :


Yeah that sounds like what I need. I need to update some  
text in

a
span
thats inside my ListItem once I do some processing.

Thanks,
Steve




On 11 Jul 2009, at 10:16, Martin Makundi wrote:


ListView returns an iterator of ListItems

Each ListItem is a component so you can just do
listItem.get("component_id");

Does this sound like what you were looking for?

**
Martin

2009/7/11 Steve Swinsburg :


Hi all,

I have a ListView and need to be able to get some child  
items

of
a
particular ListItem, ie some spans,  so that I can  
update their

Models.
How
can I target some markup elements inside the ListItem  
container

(ie
TR
tag)?

Thanks,
Steve






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org







-
To unsubscribe, e-mail: users- 
unsubscr...@wicket.apache.org

For additional commands, e-mail: users-h...@wicket.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org






-
To unsubscribe, e-mail: users-unsubscr...@wicket

Possible bug in interaction between FeedbackMessages and FeedbackMessagesModel

2009-07-12 Thread Per Lundholm
Hi!

I've bumped into a problem with feedback messages not being rendered and
given the warning about it in the log.

While tracing down how this really works, it is complicated I think, I
bumped into some code that looks a bit nasty to me. It may have effect on my
problem.

If the getObjcet method is called on FeedbackMessageModel is called, it
checks whether it has set its internal "messages" variable, else it asks the
current Session for messages.

public final List getObject()
{
if (messages == null)
{
// Get filtered messages from page where component lives
messages = Session.get().getFeedbackMessages().messages(filter);

// Sort the list before returning it
if (sortingComparator != null)
{
Collections.sort(messages, sortingComparator);
}

// Let subclass do any extra processing it wants to on the
messages.
// It may want to do something special, such as removing a given
// message under some special condition or perhaps eliminate
// duplicate messages. It could even add a message under certain
// conditions.
messages = processMessages(messages);
}
return messages;
}

That means that it actually *cache* the address to the list of message. Ok,
why is that a good idea?

However, if we look how the Session returns the list of messages we see that
it will return what FeedbackMessages returns. And here comes the
interaction, FeedbackMessages returns the Collections.emptyList() if there
are no messages. In effect, FeedbackMessageModel is *caching* the address of
the Collections.emptyList() result.

If somebody later adds a message, FeedbackMesssageModel will be unaware of
that since it will keep looking at Collections.emtyList() that it has cached
and not take the trouble to ask FeedbackMessages again.

public final List messages(final IFeedbackMessageFilter
filter)
{
if (messages.size() == 0)
{
return Collections.emptyList();
}

final List list = new ArrayList();
for (final Iterator iterator = messages.iterator();
iterator.hasNext();)
{
final FeedbackMessage message = iterator.next();
if (filter == null || filter.accept(message))
{
list.add(message);
}
}
return list;
}

Now, I think it is complicated with how these feedback messages work, but
this does not look good, IMHO.

I am talking about 1.4rc6 and earlier versions as well.

Regards,
  Per


MixedHybridUrlCodingStrategy wanted

2009-07-12 Thread Vladimir Kovalyuk
Is there a worked combination of HybridUrlCodingStrategy and
MixedParamUrlCodingStrategy? What is missed in the latter is ability to stay
bookmarkable after reaction on actions.


Re: Bug in BaseWicketTester ajax submit?

2009-07-12 Thread Martin Makundi
Hi!

Actually the bug is that it is totally fine to call
tester.executeAjaxEvent on a button that is not visible :)

Nevertheless... just calling getForm() could be simpler?

I reported bug in jira: https://issues.apache.org/jira/browse/WICKET-2363

**
Martin

2009/7/11 Martin Makundi :
> Hi!
>
> The following code (1.4-rc6):
>                // We need to get the form submitted, using reflection.
>                // It needs to be "submitted".
>                Form form = null;
>                try
>                {
>                        Field formField = 
> AjaxFormSubmitBehavior.class.getDeclaredField("__form");
>                        formField.setAccessible(true);
>                        form = (Form)formField.get(behavior);
>                }
>                catch (Exception e)
>
> fails when AjaxButton is declared with implicite form. Probably the
> above code should use the getForm() method?
>
> **
> Martin
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: How to setup QuickStart project being able useYUI menubar from Wicket stuff

2009-07-12 Thread James Carman
Actually, I think I was remembering incorrectly.  They were telling me
that they fixed a different issue I was having with YUI (something to
do with a link taking me to a login page making my login page do
nothing).

On Sun, Jul 12, 2009 at 4:17 AM, Petr Fejfar wrote:
> On Sun, Jul 12, 2009 at 6:52 AM, James
> Carman wrote:
>
>> I thought someone said this was fixed in the latest version of the
>> code.  Are you using the "trunk" version of YUI menu2?  I had the same
>> issues as you.
>
> Yes, I downloaded wicketstuff from trunk. My revision is #4778 from
> July 6th...
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



Re: weird stuff with TreeTable

2009-07-12 Thread Eyal Golan
What I did, and for now it's working, is override one of the js
functions:Wicket.TreeTable.attachUpdate
It does nothing now.

Wicket.TreeTable.attachUpdate = function(treeTableId) {
//// get the object that contains ids of elements on which the update
method was already attached
//var attached = Wicket.TreeTable.attached;
//
//// force updating the element
//Wicket.TreeTable.update(treeTableId);
//
//// if the update has not been attached to this tree table yet...
//if (typeof(attached[treeTableId]) == "undefined") {
//// ... attach it
//attached[treeTableId] = window.setInterval(function() {
Wicket.TreeTable.update(treeTableId); }, 100);
//}

return;
}

I'm sure this not a good thing.

Any suggestions?

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: weird stuff with TreeTable

2009-07-12 Thread Eyal Golan
Below are the columns I add:
treeColumns.add(new CustomPropertyTreeColumn(new
ColumnLocation(Alignment.MIDDLE, 100, Unit.PROPORTIONAL),
new
ResourceModel("purge.wizard.analyzeDocumentsStep.treeTable.header"),
"userObject.displayName"));
treeColumns.add(new PropertyRenderableColumn(new
ColumnLocation(Alignment.RIGHT, 100, Unit.PX),

"purge.wizard.analyzeDocumentsStep.treeTable.header.counters",
"userObject.counter"));

CustomPropertyColumn get IModel instead of String

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


On Sun, Jul 12, 2009 at 11:40 AM, Eyal Golan  wrote:

> Hello,
> I am having something very strange in my TreeTable.
> I've put the tree in a Dynamic Wizard Step.
> When I get to that step (which is the summary), the columns gets wider and
> wider.
> After looking at Firebug, I've noticed that the width of the header is
> increasing:
>  
>  ... <- this is keeping being larger and
> larger.
>
> I was looking at Tree.js but as I'm not a JS expert, I couldn't understand
> what's wrong.
> Is it possible that another object in my DOM causes this problem?
>
> I am using Wicket 1.3.6
>
> Thanks,
>
> Eyal Golan
> egola...@gmail.com
>
> Visit: http://jvdrums.sourceforge.net/
> LinkedIn: http://www.linkedin.com/in/egolan74
>
> P  Save a tree. Please don't print this e-mail unless it's really necessary
>


weird stuff with TreeTable

2009-07-12 Thread Eyal Golan
Hello,
I am having something very strange in my TreeTable.
I've put the tree in a Dynamic Wizard Step.
When I get to that step (which is the summary), the columns gets wider and
wider.
After looking at Firebug, I've noticed that the width of the header is
increasing:
 
 ... <- this is keeping being larger and larger.

I was looking at Tree.js but as I'm not a JS expert, I couldn't understand
what's wrong.
Is it possible that another object in my DOM causes this problem?

I am using Wicket 1.3.6

Thanks,

Eyal Golan
egola...@gmail.com

Visit: http://jvdrums.sourceforge.net/
LinkedIn: http://www.linkedin.com/in/egolan74

P  Save a tree. Please don't print this e-mail unless it's really necessary


Re: How to setup QuickStart project being able useYUI menubar from Wicket stuff

2009-07-12 Thread Petr Fejfar
On Sun, Jul 12, 2009 at 6:52 AM, James
Carman wrote:

> I thought someone said this was fixed in the latest version of the
> code.  Are you using the "trunk" version of YUI menu2?  I had the same
> issues as you.

Yes, I downloaded wicketstuff from trunk. My revision is #4778 from
July 6th...

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org