Re: Print friendly panel

2010-02-27 Thread Riyad Kalla
This is what I've done in the past as well, allows your user to just "print"
the page they are staring at and have the browser do the right thing in
using an alternative style sheet for rendering the page -- this includes
using a lot of display:none to trim down the parts of the page that you
don't want printing. This way all you need on your page is a "Print" link
that invokes the Print dialog, no other popups ontop of popups.

Some info:
http://www.scottklarr.com/topic/15/css-create-a-style-sheet-for-print-only/


http://webdesign.about.com/cs/css/a/aa042103a.htm

On Sat, Feb 27, 2010 at 4:54 PM, Alex Rass  wrote:

> Josh,
>
> This doesn't answer your question directly (about a popup).
> But a MUCH simpler way is to make your page printer friendly by supplying
> an
> alternative CSS for printing format (google on that). Makes life much
> easier.
>
> When you tell your page which css to use, you can say "use this CSS for
> printing only". All transparent to the user.
>
> - Alex
>
>
> -Original Message-
> From: Josh Chappelle [mailto:jchappe...@4redi.com]
> Sent: Friday, February 26, 2010 4:09 PM
> To: users@wicket.apache.org
> Subject: Print friendly panel
>
> Hi,
>
>
>
> Does anyone know of a suggested method to render a printer friendly panel
> to
> a separate browser window so that user's can print? The only thing I have
> found is the following article and it looks a little clunky.
>
>
>
> http://cwiki.apache.org/WICKET/rendering-panel-to-a-string.html
>
>
>
> Basically I just need to be able to place a link that when clicked will pop
> up a new browser window with only the contents to the target panel. That
> way
> users can print that panel from there.
>
>
>
> Thanks,
>
>
>
> Josh
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


RE: Print friendly panel

2010-02-27 Thread Alex Rass
Josh, 

This doesn't answer your question directly (about a popup).
But a MUCH simpler way is to make your page printer friendly by supplying an
alternative CSS for printing format (google on that). Makes life much
easier.

When you tell your page which css to use, you can say "use this CSS for
printing only". All transparent to the user.

- Alex


-Original Message-
From: Josh Chappelle [mailto:jchappe...@4redi.com] 
Sent: Friday, February 26, 2010 4:09 PM
To: users@wicket.apache.org
Subject: Print friendly panel

Hi,

 

Does anyone know of a suggested method to render a printer friendly panel to
a separate browser window so that user's can print? The only thing I have
found is the following article and it looks a little clunky.

 

http://cwiki.apache.org/WICKET/rendering-panel-to-a-string.html

 

Basically I just need to be able to place a link that when clicked will pop
up a new browser window with only the contents to the target panel. That way
users can print that panel from there.

 

Thanks,

 

Josh

 

 



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



Re: wicket example Simple tree

2010-02-27 Thread fachhoch

is there any example of adding links to LinkTree ?

svenmeier wrote:
> 
> This code from the example is just building the tree model - no place 
> for Wicket components yet.
> 
> Creating an AjaxLink comes later, when the tree nodes are represented by 
> Wicket components - see AbstractTree#newLinkComponent().
> 
> Sven
> 
> fachhoch wrote:
>> here the code from wicket examples
>>
>> private void add(DefaultMutableTreeNode parent, List sub)
>> {
>> for (Iterator i = sub.iterator(); i.hasNext();)
>> {
>> Object o = i.next();
>> if (o instanceof List)
>> {
>> DefaultMutableTreeNode child = new
>> DefaultMutableTreeNode(new ModelBean(
>> "subtree..."));
>> parent.add(child);
>> add(child, (List)o);
>> }
>> else
>> {
>> DefaultMutableTreeNode child = new
>> DefaultMutableTreeNode(new ModelBean(
>> o.toString()));
>> parent.add(child);
>> }
>> }
>> }
>>
>> in else block I want to add  a ajaxLink , and any link needs an id so in
>> this case what id can I give ?
>>
>>
>>
>> svenmeier wrote:
>>   
>>> Sure, see LinkTree and #setLinkType().
>>>
>>> Sven
>>> *
>>> *fachhoch wrote:
>>> 
 I mean links to show popups, like modal window , or file download etc ? 

 fachhoch wrote:
   
   
> is it possible to put Ajaxlinks   in tree nodes ?
>
>
> 
> 
   
   
>>> -
>>> 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
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/wicket-example-Simple-tree-tp27730550p27731730.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



Re: wicket example Simple tree

2010-02-27 Thread Sven Meier
This code from the example is just building the tree model - no place 
for Wicket components yet.


Creating an AjaxLink comes later, when the tree nodes are represented by 
Wicket components - see AbstractTree#newLinkComponent().


Sven

fachhoch wrote:

here the code from wicket examples

private void add(DefaultMutableTreeNode parent, List sub)
{
for (Iterator i = sub.iterator(); i.hasNext();)
{
Object o = i.next();
if (o instanceof List)
{
DefaultMutableTreeNode child = new
DefaultMutableTreeNode(new ModelBean(
"subtree..."));
parent.add(child);
add(child, (List)o);
}
else
{
DefaultMutableTreeNode child = new
DefaultMutableTreeNode(new ModelBean(
o.toString()));
parent.add(child);
}
}
}

in else block I want to add  a ajaxLink , and any link needs an id so in
this case what id can I give ?



svenmeier wrote:
  

Sure, see LinkTree and #setLinkType().

Sven
*
*fachhoch wrote:

I mean links to show popups, like modal window , or file download etc ? 


fachhoch wrote:
  
  

is it possible to put Ajaxlinks   in tree nodes ?




  
  

-
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: Announcing: visural-wicket 0.5 released - open source wicket components

2010-02-27 Thread Richard Nichols
Could it be a content type issue? I haven't served images in this way
before using dynamic resource refs, but if you were doing a similar
thing with a servlet then you would need to ensure the mime type was
being sent as "image/jpeg".

If the http headers all look good, it may be a limitation of fancybox
being used in this way.

On 27 February 2010 22:17, danisevsky  wrote:
> thank you. I tryed this, but do not work. I think problem is that image has
> no .jpg suffix. I do not know, how to solve it.. :(
>
> here is the result preview: http://img5.imgup.eu/prevzfs.jpg
>



-- 
Richard Nichols :: http://www.visural.com/ :: http://www.richardnichols.net/

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



Re: wicket example Simple tree

2010-02-27 Thread fachhoch

here the code from wicket examples

private void add(DefaultMutableTreeNode parent, List sub)
{
for (Iterator i = sub.iterator(); i.hasNext();)
{
Object o = i.next();
if (o instanceof List)
{
DefaultMutableTreeNode child = new
DefaultMutableTreeNode(new ModelBean(
"subtree..."));
parent.add(child);
add(child, (List)o);
}
else
{
DefaultMutableTreeNode child = new
DefaultMutableTreeNode(new ModelBean(
o.toString()));
parent.add(child);
}
}
}

in else block I want to add  a ajaxLink , and any link needs an id so in
this case what id can I give ?



svenmeier wrote:
> 
> Sure, see LinkTree and #setLinkType().
> 
> Sven
> *
> *fachhoch wrote:
>> I mean links to show popups, like modal window , or file download etc ? 
>>
>> fachhoch wrote:
>>   
>>> is it possible to put Ajaxlinks   in tree nodes ?
>>>
>>>
>>> 
>>
>>   
> 
> 
> -
> 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://old.nabble.com/wicket-example-Simple-tree-tp27730550p27731004.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



Re: wicket example Simple tree

2010-02-27 Thread Sven Meier

Sure, see LinkTree and #setLinkType().

Sven
*
*fachhoch wrote:
I mean links to show popups, like modal window , or file download etc ? 


fachhoch wrote:
  

is it possible to put Ajaxlinks   in tree nodes ?





  



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



Re: wicket example Simple tree

2010-02-27 Thread fachhoch

I mean links to show popups, like modal window , or file download etc ? 

fachhoch wrote:
> 
> is it possible to put Ajaxlinks   in tree nodes ?
> 
> 

-- 
View this message in context: 
http://old.nabble.com/wicket-example-Simple-tree-tp27730550p27730594.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



wicket example Simple tree

2010-02-27 Thread tubin gen
is it possible to put Ajaxlinks   in tree nodes ?


RE: Print friendly panel

2010-02-27 Thread Josh Chappelle
Thanks Michael,

I actually got the popup to work by just putting target="_blank" in the
anchor tag. I didn't think about doing it your way.

My main problem is rendering the component into a string as well as to the
browser.

Thanks for your help!

Josh

-Original Message-
From: Michael O'Cleirigh [mailto:michael.ocleir...@rivulet.ca] 
Sent: Friday, February 26, 2010 3:25 PM
To: users@wicket.apache.org
Subject: Re: Print friendly panel

Hi Josh,

I'd create a PrinterFriendlyPage and then use a customized Link from the 
NotPrinterFriendlyPage to have it open in a new window.

Link has this public method where you can setup the PopupSettings class 
that seems to provide the configuration hooks for how the popup should 
work when displayed.

public final Link setPopupSettings(final PopupSettings popupSettings)
 {
 this.popupSettings = popupSettings;
 return this;
 }

Regards,

Mike

> Hi,
>
>
>
> Does anyone know of a suggested method to render a printer friendly panel
to
> a separate browser window so that user's can print? The only thing I have
> found is the following article and it looks a little clunky.
>
>
>
> http://cwiki.apache.org/WICKET/rendering-panel-to-a-string.html
>
>
>
> Basically I just need to be able to place a link that when clicked will
pop
> up a new browser window with only the contents to the target panel. That
way
> users can print that panel from there.
>
>
>
> Thanks,
>
>
>
> Josh
>
>
>
>
>
>
>


-
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: Localized PropertyTreeColumn header string

2010-02-27 Thread DCarr
Doh! Found it - didn't dig deep enough.  Thanks! 

So the string that is required in the constructor is simply ignored if I 
supply an overridden newHeader - it looks like I should be able to use 
'null' there without ill effects.  I'm curious though: is there a reason 
why the constructor wouldn't take an IModel to supply the data 
for the default implementation which uses a Label as the column header 
Component? 


Thanks,
Doug.

Igor Vaynberg wrote:

all you had to do was look at the source. its not that difficult to do...

new propertytreecolumn(...) {
 public component newhreader(parent, id) {
  label l=super.newheader(parent,id);
  l.setdefaultmodelobject(getstring(l.getdefaultmodelobjectasstring());
 }
}

-igor

On Sat, Feb 27, 2010 at 5:47 AM, DCarr  wrote:
  

Anyone have any hints/tips/wiki page references, or are column headers
really not internationalizable?

Thanks,
Doug.

DCarr wrote:


Hi,

  Is there a recommended way to set the header string in a
PropertyTreeColumn when that string should come from a resource file?  It
doesn't take a model, so the load cannot be deferred until later; using
getLocalizer().getString(...) results in:

  -WARN::org.apache.wicket.Localizer: Tried to retrieve a localized string
for a component that has not yet been added to the page. This can sometimes
lead to an invalid or no localized resource returned. Make sure you are not
calling Component#getString() inside your Component's constructor. Offending
component: [MarkupContainer [Component id = panel]]

That is only a warning, but I'd prefer to not have any warnings in
production code.
There does not appear to be a way to set the column header value after the
column (or the TreeTable the column is in) has been constructed.  The
TreeTable has to be added, or Wicket complains about

Unable to find component with id 'x' in [MarkupContainer [Component id
= panel]].

but I don't think TreeTable can be constructed without the column
definitions (i.e. construct a TreeTable placeholder, and then fill in the
column details later).

Thanks,
Doug.


-
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: Localized PropertyTreeColumn header string

2010-02-27 Thread Igor Vaynberg
all you had to do was look at the source. its not that difficult to do...

new propertytreecolumn(...) {
 public component newhreader(parent, id) {
  label l=super.newheader(parent,id);
  l.setdefaultmodelobject(getstring(l.getdefaultmodelobjectasstring());
 }
}

-igor

On Sat, Feb 27, 2010 at 5:47 AM, DCarr  wrote:
> Anyone have any hints/tips/wiki page references, or are column headers
> really not internationalizable?
>
> Thanks,
> Doug.
>
> DCarr wrote:
>>
>> Hi,
>>
>>   Is there a recommended way to set the header string in a
>> PropertyTreeColumn when that string should come from a resource file?  It
>> doesn't take a model, so the load cannot be deferred until later; using
>> getLocalizer().getString(...) results in:
>>
>>   -WARN::org.apache.wicket.Localizer: Tried to retrieve a localized string
>> for a component that has not yet been added to the page. This can sometimes
>> lead to an invalid or no localized resource returned. Make sure you are not
>> calling Component#getString() inside your Component's constructor. Offending
>> component: [MarkupContainer [Component id = panel]]
>>
>> That is only a warning, but I'd prefer to not have any warnings in
>> production code.
>> There does not appear to be a way to set the column header value after the
>> column (or the TreeTable the column is in) has been constructed.  The
>> TreeTable has to be added, or Wicket complains about
>>
>> Unable to find component with id 'x' in [MarkupContainer [Component id
>> = panel]].
>>
>> but I don't think TreeTable can be constructed without the column
>> definitions (i.e. construct a TreeTable placeholder, and then fill in the
>> column details later).
>>
>> Thanks,
>> Doug.
>>
>>
>> -
>> 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: Wicket Ajax Channels

2010-02-27 Thread Xavier López
Thanks Daniel, didn't notice AbstractDefaultAjaxBehavior.getChannelName().
Not that I needed it, just curious. About the channel modes, that's what I
supposed, just wanted to be sure I'm not missing any possibly interesting
features.

And thanks for the post 'Discard queued Ajax Requests ;-)

2010/2/27 Daniel Frisk 

> Hello Xavier,
>
> you can override AbstractDefaultAjaxBehavior.getChannelName() to return
> "something|d" and the channel will switch to drop behavior. I'm still using
> 1.3 so it may be different in 1.4.
>
> I've seen no documentation other than the code itself, but if my memory
> serves me right there are no other "options".
>
> // Daniel
> jalbum.net
>
>
> On 27 feb 2010, at 13:59, Xavier López wrote:
>
> > I've been facing a scenario where AJAX requests processing times were
> > abnormally elevated. That situation has already been fixed (problem of
> > AppServer configuration), but meanwhile, I was looking for some way to
> avoid
> > queueing all requests, in a way such that only the last request should be
> > processed (a good example would be an AutoComplete textfield).
> >
> > I found this post
> > http://old.nabble.com/Discard-queued-ajax-requests-td27140816.html, on
> the
> > same issue. The post states that using "|d" at the end of the ajax
> channel
> > does the job. However, the only way I know to specify the channel is by
> > making ajax calls from my code (js functions WicketAjaxGet/Post). There
> are
> > some questions that pop up off my head, just out of curiosity:
> >
> > Is it possible to specifiy that channel, let's say, in an AjaxBehavior ?
> > Looking through wicket-ajax.js i've seen the channel is defaulted to
> "0|s".
> > What does that |s mean ?
> >
> > Is there any documentation on the flags like can (or seem to) be added to
> > the channel ?
> >
> > Thanks!
> > Xavier
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
"Klein bottle for rent--inquire within."


Re: Wicket Ajax Channels

2010-02-27 Thread Daniel Frisk
Hello Xavier,

you can override AbstractDefaultAjaxBehavior.getChannelName() to return 
"something|d" and the channel will switch to drop behavior. I'm still using 1.3 
so it may be different in 1.4.

I've seen no documentation other than the code itself, but if my memory serves 
me right there are no other "options".

// Daniel
jalbum.net


On 27 feb 2010, at 13:59, Xavier López wrote:

> I've been facing a scenario where AJAX requests processing times were
> abnormally elevated. That situation has already been fixed (problem of
> AppServer configuration), but meanwhile, I was looking for some way to avoid
> queueing all requests, in a way such that only the last request should be
> processed (a good example would be an AutoComplete textfield).
> 
> I found this post
> http://old.nabble.com/Discard-queued-ajax-requests-td27140816.html, on the
> same issue. The post states that using "|d" at the end of the ajax channel
> does the job. However, the only way I know to specify the channel is by
> making ajax calls from my code (js functions WicketAjaxGet/Post). There are
> some questions that pop up off my head, just out of curiosity:
> 
> Is it possible to specifiy that channel, let's say, in an AjaxBehavior ?
> Looking through wicket-ajax.js i've seen the channel is defaulted to "0|s".
> What does that |s mean ?
> 
> Is there any documentation on the flags like can (or seem to) be added to
> the channel ?
> 
> Thanks!
> Xavier


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



Re: Localized PropertyTreeColumn header string

2010-02-27 Thread DCarr
Anyone have any hints/tips/wiki page references, or are column headers 
really not internationalizable?


Thanks,
Doug.

DCarr wrote:

Hi,

   Is there a recommended way to set the header string in a 
PropertyTreeColumn when that string should come from a resource file?  
It doesn't take a model, so the load cannot be deferred until later; 
using getLocalizer().getString(...) results in:


   -WARN::org.apache.wicket.Localizer: Tried to retrieve a localized 
string for a component that has not yet been added to the page. This 
can sometimes lead to an invalid or no localized resource returned. 
Make sure you are not calling Component#getString() inside your 
Component's constructor. Offending component: [MarkupContainer 
[Component id = panel]]


That is only a warning, but I'd prefer to not have any warnings in 
production code.
There does not appear to be a way to set the column header value after 
the column (or the TreeTable the column is in) has been constructed.  
The TreeTable has to be added, or Wicket complains about


Unable to find component with id 'x' in [MarkupContainer 
[Component id = panel]].


but I don't think TreeTable can be constructed without the column 
definitions (i.e. construct a TreeTable placeholder, and then fill in 
the column details later).


Thanks,
Doug.


-
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: Debugging in Netbeans - Lists don't load

2010-02-27 Thread gnugrf

Riyad,

Thanks for replying - I may have not been clear enough. The database
connection is fine when I run the application normally. The choices from the
dropdown list are loaded, and I've also put a temporary system.out line to
spit the contents of the list out immediately after loading, so that I can
verify the contents. Everything works UNTIL I run in debug-mode in Netbeans.
At that point, the lists dont get loaded. I don't change anything, other
than running Netbeans in debug.



Riyad Kalla wrote:
> 
> Garrett,
> 
> I would start simple, remove Wicket as much as possible from this
> situation
> first. In your DAO or whatever you are using to do the query and load the
> results from the DB -- just System.out the contents of the list to the
> console.
> 
> Until you get that working, don't bother thinking about Wicket and what is
> going on there -- it will just muddy the water.
> 
> Check your console logs on startup, your persistence framework (Hibernate)
> may be crapping out an error that is scrolling by really quick, like it
> cannot find a driver or your credentials for the DB connection are wrong.
> 
> Also try and check the console when issuing your first query, look for the
> same sort of data.
> 
> Troubleshoot that DB connection first and foremost. At that point, it's
> either a Spring issue or something else, but make sure you get that data
> out
> of the DB first before moving on.
> 
> -R
> 
> On Fri, Feb 26, 2010 at 4:28 PM, Garrett Fry
> wrote:
> 
>>
>> Qualifying information: Im a noob
>>
>> Trying to get a DropDownChoice working. Ive read every post I can find,
>> and
>> slowly losing my mind. I like to solve my own problems if I can, but I
>> can't
>> even debug properly. Everytime I set a breakpoint and step through... the
>> Lists that are loaded via spring/hibernate don't get loaded.
>> They read size(0). Because the lists dont load, I can't even find out
>> whats
>> going wrong in the DropDownChoice. gnu...@sdf.lonestar.org
>> SDF Public Access UNIX System - http://sdf.lonestar.org
>>
>> -
>> 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://old.nabble.com/Debugging-in-Netbeans---Lists-don%27t-load-tp27724615p27728021.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



Wicket Ajax Channels

2010-02-27 Thread Xavier López
I've been facing a scenario where AJAX requests processing times were
abnormally elevated. That situation has already been fixed (problem of
AppServer configuration), but meanwhile, I was looking for some way to avoid
queueing all requests, in a way such that only the last request should be
processed (a good example would be an AutoComplete textfield).

I found this post
http://old.nabble.com/Discard-queued-ajax-requests-td27140816.html, on the
same issue. The post states that using "|d" at the end of the ajax channel
does the job. However, the only way I know to specify the channel is by
making ajax calls from my code (js functions WicketAjaxGet/Post). There are
some questions that pop up off my head, just out of curiosity:

Is it possible to specifiy that channel, let's say, in an AjaxBehavior ?
Looking through wicket-ajax.js i've seen the channel is defaulted to "0|s".
What does that |s mean ?

Is there any documentation on the flags like can (or seem to) be added to
the channel ?

Thanks!
Xavier


Re: Announcing: visural-wicket 0.5 released - open source wicket components

2010-02-27 Thread danisevsky
thank you. I tryed this, but do not work. I think problem is that image has
no .jpg suffix. I do not know, how to solve it.. :(

here is the result preview: http://img5.imgup.eu/prevzfs.jpg


Re: Generic warning ListMultipleChoice

2010-02-27 Thread Juris Maskalans
Thanks for your quick response. But I have already tried to add needed type,
e.g.  and got the error.
I suppose the case is not so simple.

IModel> allYearsModel = new PropertyModel>(this,
"selectedYears");
ListMultipleChoice allYears = new
ListMultipleChoice("allYears", allYearsModel, new
ArrayList());

gives error:

"The constructor ListMultipleChoice(String, IModel>,
ArrayList) is undefined"

Should it not be a valid constructor for:
ListMultipleChoice(java.lang.String id, IModel>
object, java.util.List choices)

When I use constructor without IModel, all is OK:
ListMultipleChoice allYears = new
ListMultipleChoice("allYears", new ArrayList());


When I look at DropDownChoice it works with similar constructor, e.g.,
IModel allYearsModel = new PropertyModel(this,
"selectedYears");
DropDownChoice placeDdc = new DropDownChoice("place",
allYearsModel, new ArrayList());

I can not figure out, why so.

Juris


On 27 February 2010 00:15, Igor Vaynberg  wrote:

> ListMultipleChoice tmp = new ListMultipleChoice(...
>
> -igor
>
> On Fri, Feb 26, 2010 at 2:07 PM, Juris Maskalans 
> wrote:
> > Hi,
> >
> > I have a question regarding ListMultipleChoice.
> > How to overcome generic warning.
> > "ListMultipleChoice is a raw type. References to generic type
> > ListMultipleChoice should be parameterized"
> >
> > Despite of this the code works fine:
> > ListMultipleChoice tmp = new ListMultipleChoice("tmp", new
> > PropertyModel>(
> > this, "selectedYears"), new ArrayList());
> >
> > Thanks!
> > Juris
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>