Re: Job(s) for Wicket developers

2010-07-28 Thread Oleg Taranenko
Hi Michael,

habe ich Diene Anzeige nicht zu spät erfahren? Ist das Position schon 
geschlossen? Wenn nicht, melde Dich
bitte an.

Gruß aus Lahr/Schwarzwald,

Oleg Taranenko,


am Dienstag, 22. Juni 2010 um 10:34 schrieben Sie:
> Hi,

> The company I work at currently has two open permanent positions for 
> middleware/frontend developers in my team. A
> sound knowledge of Javascript, CSS etc. is a must-have, and Wicket experience 
> is a big plus as current and future projects are developed with Wicket.

> We are located in the southwest of Germany and it is necessary to work 
> on-site. If you are interested or know anyone
> who might be interested please feel free to get in touch with me and I will 
> tell you some more details.

> By the way, I'm one of the developers you would work with, not an HR guy or 
> something  

> Cheers,

> Michael

> -
> 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 at ApacheCon EU'09 in Amsterdam

2009-02-13 Thread Oleg Taranenko
Hmm...

some time ago (approx 1,5 year ) was attempts to marry JBoss Seam and
Wicket. Was it successful? May be this is an example, why wicket should to
be treated as a standard?

Oleg

On Fri, Feb 13, 2009 at 4:59 PM, Hoover, William wrote:

> First of all, thank you for entertaining this idea :o)
>
> See comments below...
>
> -Original Message-
> From: Johan Compagner [mailto:jcompag...@gmail.com]
> Sent: Friday, February 13, 2009 9:38 AM
> To: users@wicket.apache.org
> Subject: Re: Wicket at ApacheCon EU'09 in Amsterdam
>
> >
> > From a developers point-of-view standardization can often be a thorn
> > in our side, but for management it can offer a
> > vendor-independent/implementation-independent solution.
> > Maintaining/upgrading infrastructure is difficult, expensive and time
> > consuming. From the point-of-view of management a standard can often
> > minimize the risk of vender lock-in.
>
>
>
> But the examples you gave me have multiply implementations. But wicket
> doesnt have multiply implementations, what would that mean?
> That we have IComponent, IRequestCycle, ISession and IApplication and so
> on?
> And that IBM would make its own implementation of all the components
> including the base? And JBoss and X and Y?
>
> Answer: They do not have multiple implementations now, but they could
> potentially have them in the future. It would mean that other
> communities could follow a standard and mangement could be satisfied
> that Wicket has the backing of a recognized standard.
>
> There is no vendor locking for wicket.. (and all other open source web
> frameworks by the way) what is the locking?
>
> Answer: I agree that other frameworks that have a standard have been
> disastrous as far as portability between implementations (such as the
> loosly organized JSF specification), but the locking I'm referring to is
> in realation to the vendor (Wicket in this case) from a business
> standpoint. I for one do not have an issue with being tightly coupled to
> Wicket, but I can see why managment may have an issue with it. A
> question we need to ask ourselves from a management standpoit is if for
> whatever reason we had to migrate from Wicket to another framework, what
> revenue impact would that have on our organization in doing so? If we
> chose a standards base solution would this minimize the risk due to
> multiple vendor offerings?
>
> And wicket runs pretty much on all simple servlet containers.. Some bugs
> in some not counting...
> So give me a concreet example what a standardized wicket would look
> like.
> What vendor-independent/implementation-independent solutions there would
> be then..
>
> Answer: This is a preliminary concept, but the Swing-like architecture
> for the web could be a starting point?
>
>
> >
> > Another thing to consider is that a broader multi-community
> > involvement could also bread innovation. There may be other innovators
>
> > from other communities that may have valuable input that could improve
>
> > Wicket in ways that may have not been previously considered. IMHO, the
>
> > biggest argument for JSR/JCP is that there is often a broader
> involvement in the process.
> > Hibernate, for instance, was in a similar position a few years back
> > when they introduced a new persistence concept. They have since become
>
> > heavily involved in the JPA specification process. When I first worked
>
> > with Hibernate, like many, I was very impressed (similar to the first
> > time I worked with Wicket :o), but looking back at how Hiberante
> > initially did things to how they do them now there are some huge
> > improvements due to the JPA specification.
> >
> >
> look hibernate is an implementation of a persistence.. And they adapted
> (and where involved) into the specifications yes
> Ok now translate that to wicket..
> What is wicket an implementation of? a webframework? ahh.. tapestry is
> also a webframework and struts is also a webframework
> They all implement the standard webframework spec.. which is the servlet
> spec..
> So
>
> JPA Spec == Servlet Spec
> Hibernate == Wicket
> TopLink == Tapestry
>
> So wicket is already in the JSR/JCP ! we are an
> enhancement/implementation of the servlet spec :)
> ok ok. Maybe you say.. sevlet spec implementation == servlet .jar and
> tomcat  ;) not the thing you would build on top of that again
> But then if you have wicket,tapestry and struts (and x and y) and then
> you want to define a Web Framework spec that all of them can adapt to
> what would that then be? What would that then gain? Would that mean that
> tapestry components/pages could run inside wicket?
> It is just not as easy to do as with a persistence spec. Which is pretty
> easy because so many things kind of already work the same way before
> they where under the same spec..
> web frameworks differ quite a bit
>
> Answer: Ironically, the same argument that Wicket follows the Servlet
> specification is the same one I used in some of the dicusssions with my
> col

Re: [OT] wicket users around the world

2008-12-12 Thread Oleg Taranenko
Hi,

native russian, i'm living and working in Germany. Not working with Wicket
right now, but love and endorse it, and hopefully become soon a wicket-based
project.

Oleg

On Thu, Dec 11, 2008 at 7:57 PM, francisco treacy <
francisco.tre...@gmail.com> wrote:

> to know a little bit more of our great (and vast) community, i was
> just wondering if you're keen on sharing where you come from and/or
> where you work with wicket...
>
> for instance, here argentinian/belgian working with wicket in antibes,
> france
>
> francisco
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: [offtop] need help with eclipse and m2eclipse

2008-08-21 Thread Oleg Taranenko
Hello all,

sorry for reviving archaic thread, but right now i've tried the
combinamtion eclipse + m2eclipse again.

Eclipse Ganymede JEE (3.4) + m2eclipse 0.9.5 works perfect!

I can now under eclipse launch mvn jetty:run and comfortable
debugging all sources including the wicket core. 

One suggestion, may establish the maven archetype to generate the
m2eclipse ready Wicket Quickstart? 
Thoughts? Doubts?


Saturday, December 1, 2007, 4:32:02 PM, you wrote:

  
> Hello all,


> Sorry for bothering, may be somebody could help. I'm developing
> web apps under Eclipse. Early I'm using the mvn eclipse:eclipse +
> jetty launcher plugn. Now i try to use m2eclipse plugin and webapp
> is started using m2's goal mvn jetty:run. The application works, but
> when I want to trace through the wicket core code (in wicket.jar)
> the debug window shows (for example):


> Source not found for WebRequestCycle(RequestCycle).steps() line: 1248


> I see Eclipse log:
> !ENTRY org.eclipse.debug.ui 4 0 2007-11-30 23:47:48.546
> !MESSAGE Problem detected with part
> org.eclipse.debug.ui.NoSourceFoundEditor (class =
> org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditor):
> Editor is not firing a PROP_INPUT event in response to
> IReusableEditor.setInput(...)
> !SESSION 2007-12-01 07:39:24.265
> ---
> eclipse.buildId=M20071023-1652
> java.version=1.6.0_03
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
> Command-line arguments:  -os win32 -ws win32 -arch x86 -clean




> This is very strange, while if i walking the tree in project
> explorer, i can see the java code as usually. 
> Could any has the same effects? Should I ask a m2 commutity?


> Eclipse SDK
> Version: 3.3.1.1
> Build id: I20070503-1400
> Java 1.6.0.3


> m2 version 0.0.12.20071107-2300


> Thanks for any tips.





-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: [offtop] need help with eclipse and m2eclipse

2007-12-01 Thread Oleg Taranenko




Hello Martijn,

Jetty launcher has some advantages though, i.e. it allows to set up different context path/port for the projects without changing source code. Thus i can simultaneously run and debug its. If not this annoying bug, i found development with m2eclipse more convenient. I hope the m2 community will resolve this.

Anyway thank you for answer.

Cheers, Oleg.


Saturday, December 1, 2007, 3:57:22 PM, you wrote:

> You don't need the jetty launcher plugin, in fact I'd recommend using the
> embedded jetty starter we provide with the quickstarts.
> Right click the start class, select debug as application and go...

> Also the mvn jetty:run plugin is not really useful for development in my
> opinion. It is a nice maven plugin to quickly run a project from source, but
> as a development option I find it cumbersome.

> Martijn


> On Dec 1, 2007 3:32 PM, Oleg Taranenko <[EMAIL PROTECTED]> wrote:

>>  Hello all,


>> Sorry for bothering, may be somebody could help. I'm developing web apps
>> under Eclipse. Early I'm using the mvn eclipse:eclipse + jetty launcher
>> plugn. Now i try to use m2eclipse plugin and webapp is started using m2's
>> goal mvn jetty:run. The application works, but when I want to trace through
>> the wicket core code (in wicket.jar) the debug window shows (for example):


>> Source not found for WebRequestCycle(RequestCycle).steps() line: 1248


>> I see Eclipse log:

>> !ENTRY org.eclipse.debug.ui 4 0 2007-11-30 23:47:48.546

>> !MESSAGE Problem detected with part
>> org.eclipse.debug.ui.NoSourceFoundEditor (class =
>> org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditor): Editor
>> is not firing a PROP_INPUT event in response to IReusableEditor.setInput
>> (...)

>> !SESSION 2007-12-01
>> 07:39:24.265---

>> eclipse.buildId=M20071023-1652

>> java.version=1.6.0_03

>> java.vendor=Sun Microsystems Inc.

>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU

>> Command-line arguments:  -os win32 -ws win32 -arch x86 -clean



>> This is very strange, while if i walking the tree in project explorer, i
>> can see the java code as usually.

>> Could any has the same effects? Should I ask a m2 commutity?


>> Eclipse SDK

>> Version: 3.3.1.1

>> Build id: I20070503-1400

>> Java 1.6.0.3


>> m2 version 0.0.12.20071107-2300


>> Thanks for any tips.


>> --

>> Best regards,

>>  Oleg
>> 
>> -
>> To
>> unsubscribe, e-mail: [EMAIL PROTECTED] For additional
>> commands, e-mail: [EMAIL PROTECTED]







-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: [offtop] need help with eclipse and m2eclipse

2007-12-01 Thread Oleg Taranenko




Hello Martijn,

Jetty launcher has some advantages though, i.e. it allows to set up different context path/port for the projects without changing source code. Thus i can simultaneously run and debug its. If not this annoying bug, i found development with m2eclipse more convenient. I hope the m2 community will resolve this.

Anyway thank you for answer.

Cheers, Oleg.


> You don't need the jetty launcher plugin, in fact I'd recommend using the
> embedded jetty starter we provide with the quickstarts.
> Right click the start class, select debug as application and go...

> Also the mvn jetty:run plugin is not really useful for development in my
> opinion. It is a nice maven plugin to quickly run a project from source, but
> as a development option I find it cumbersome.

> Martijn


> On Dec 1, 2007 3:32 PM, Oleg Taranenko <[EMAIL PROTECTED]> wrote:

>>  Hello all,


>> Sorry for bothering, may be somebody could help. I'm developing web apps
>> under Eclipse. Early I'm using the mvn eclipse:eclipse + jetty launcher
>> plugn. Now i try to use m2eclipse plugin and webapp is started using m2's
>> goal mvn jetty:run. The application works, but when I want to trace through
>> the wicket core code (in wicket.jar) the debug window shows (for example):


>> Source not found for WebRequestCycle(RequestCycle).steps() line: 1248


>> I see Eclipse log:

>> !ENTRY org.eclipse.debug.ui 4 0 2007-11-30 23:47:48.546

>> !MESSAGE Problem detected with part
>> org.eclipse.debug.ui.NoSourceFoundEditor (class =
>> org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditor): Editor
>> is not firing a PROP_INPUT event in response to IReusableEditor.setInput
>> (...)

>> !SESSION 2007-12-01
>> 07:39:24.265---

>> eclipse.buildId=M20071023-1652

>> java.version=1.6.0_03

>> java.vendor=Sun Microsystems Inc.

>> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU

>> Command-line arguments:  -os win32 -ws win32 -arch x86 -clean



>> This is very strange, while if i walking the tree in project explorer, i
>> can see the java code as usually.

>> Could any has the same effects? Should I ask a m2 commutity?


>> Eclipse SDK

>> Version: 3.3.1.1

>> Build id: I20070503-1400

>> Java 1.6.0.3


>> m2 version 0.0.12.20071107-2300


>> Thanks for any tips.


>> --

>> Best regards,

>>  Oleg
>> 
>> -
>> 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]



[offtop] need help with eclipse and m2eclipse

2007-12-01 Thread Oleg Taranenko




Hello all,

Sorry for bothering, may be somebody could help. I'm developing web apps under Eclipse. Early I'm using the mvn eclipse:eclipse + jetty launcher plugn. Now i try to use m2eclipse plugin and webapp is started using m2's goal mvn jetty:run. The application works, but when I want to trace through the wicket core code (in wicket.jar) the debug window shows (for example):

Source not found for WebRequestCycle(RequestCycle).steps() line: 1248

I see Eclipse log:
!ENTRY org.eclipse.debug.ui 4 0 2007-11-30 23:47:48.546
!MESSAGE Problem detected with part org.eclipse.debug.ui.NoSourceFoundEditor (class = org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditor): Editor is not firing a PROP_INPUT event in response to IReusableEditor.setInput(...)
!SESSION 2007-12-01 07:39:24.265 ---
eclipse.buildId=M20071023-1652
java.version=1.6.0_03
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ru_RU
Command-line arguments:  -os win32 -ws win32 -arch x86 -clean


This is very strange, while if i walking the tree in project explorer, i can see the java code as usually. 
Could any has the same effects? Should I ask a m2 commutity?

Eclipse SDK
Version: 3.3.1.1
Build id: I20070503-1400
Java 1.6.0.3

m2 version 0.0.12.20071107-2300

Thanks for any tips.

-- 
Best regards,
 Oleg




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[4]: RequestCycle?

2007-10-05 Thread Oleg Taranenko




Yeah web server is alive... what about svn server? I can not update sources :(


C:\opensource\net\databinder\trunk>svn update
svn: Can't connect to host 'databinder.net': A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

svn checkout svn://databinder.net/databinder/trunk does not respond too.



MD> Works for me... Apparently Nathan (or his ISP) has shut down the
MD> pingd. The website is still alive!

MD> Martijn

MD> Result of the page in my browser:

MD> Toolkit overview
MD> Databinder is a Java programming toolkit for data–driven Web
MD> applications. It's based upon the Wicket Web component framework and
MD> Hibernate object-relational mapping service. Generally preferring
MD> creativity over convention, Databinder's aim is to facilitate database
MD> programming for the Web that is straightforward, pleasant, and
MD> flexible.
MD> How it works
MD> Databinder provides you with Wicket models that populate themselves
MD> using a lightly managed Hibernate session, and a collection of view
MD> components that bind to them automatically. In your application,
MD> instances of annotated data classes rest in these models, rendering
MD> (and updating) through a view component tree and plain HTML templates.
MD> Screencasts




-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: RequestCycle?

2007-10-05 Thread Oleg Taranenko




Hello ChuckDeal,

databinder.net is down for a while... :((

C:\opensource\net\databinder\trunk>ping www.databinder.net

Pinging databinder.net [66.108.186.60] with 32 bytes of data:

Request timed out.
Request timed out.
Request timed out.
Request timed out.

Ping statistics for 66.108.186.60:
    Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),





Thursday, October 4, 2007, 10:09:57 PM, you wrote:


C> I don't know that 1.1 has a tar.  My project uses maven, so it was a snap to
C> add the Databinder bits to our pom.

C> Here is the page that gives the databinder snapshot repo info:
C> http://databinder.net/site/show/faq#updates

C> If you don't use maven, I could always send a 1.1-SNAPSHOT directly to
C> you...

C> FYI, The databinder site has some examples that help with learning how to
C> use and adapt the code to your own project.

C> Chuck


C> Stanczak Group wrote:
>> 
>> Probably not. I'll probably use it when I get a chance. I just 
>> downloaded the 1.0 tar and saw it's using 1.2 Wicket. Shot me the link
>> and I'll see if I can give it a shot tonight.
>> 
>> ChuckDeal wrote:
>>> Stanczak Group wrote:
>>>   
 I'm not for sure what to use. I tried to override the newRequestCycle()
 but I had trouble understanding it. I'm doing something like what
 DataBinder does, but with 1.3. DataBinder seems to be 1.2. Either way
 I'd rather use my own. Does anyone have an example of providing my own
 request cycle, or is there an easier way?

 Sam Hough wrote:
 
> I think it is setup with ThreadLocal so you can get it easily with
> RequestCycle.get(). You can also provide your own version from
> Application.newRequestCycle which might be more what you need to hook
> in
> start/end events.



> Stanczak Group wrote:
>   
>   
>> How can I access the request cycle so I can open and close a Hibernate
>> session on each request?

>> -- 
>> Justin Stanczak
>> Stanczak Group
>> 812-735-3600
>> 

>>> DataBinder (1.1-SNAPSHOT) definitely works with 1.3.  Databinder also
>>> does a
>>> pretty good job of integrating Hibernate into the Wicket models.  Is
>>> there a
>>> use case for which Databinder does not work for you?

>>> Chuck
>>>   
>> 
>> -- 
>> Justin Stanczak
>> Stanczak Group
>> 812-735-3600
>> 
>> "All that is necessary for the triumph of evil is that good men do
>> nothing."
>> Edmund Burke
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 




-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: JDK version

2007-09-25 Thread Oleg Taranenko




Hello Al,

Tuesday, September 25, 2007, 7:05:34 PM, you wrote:

> Some of the unit tests currently fail under JDK 1.6 due to the ordering
> of iterators over hashmaps changing. This doesn't affect real apps, 
> merely the tests (we put the attributes for tags into a Map, and the
> test is expecting  but gets 
b="bar" a="foo">> and fails due to that - nothing
b="bar" a="foo">> to worry about). We'll 
> fix this in due course.

To eliminate such type of failures i think we need to explore xmlunit facilities (http://xmlunit.sourceforge.net/). 
Pity i'm not an expert in this tools :)

Cheers,

Oleg





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: Download invoice without DownloadLink

2007-09-06 Thread Oleg Taranenko




Hello Jean-Baptiste,

what i want to see is a dialog to save downloaded file in browser, therefore it is slightly not my case. 
Viewing the source of DownloadLink seems get nessesary info. 

BTW, there is no example with DownloadLink in the codebase at all. I found it would be useful to add, may be in conjunction with upload samples.

Another puzzle is downloading using Ajax. My pages are basically used ajax calls to refresh page content. 

        public class ActionPanel extends Panel {
                private String selectedAction;
                
                public ActionPanel(String id, IModel model) {
                        
                        super(id, model);
                        List selectChoice = new ArrayList(1);
                        VTodoDealer requestTask = (VTodoDealer) model.getObject();
                        if (requestTask.getInvoiceFileName() != null) {  
                                selectChoice.add("documents");
                        }
                        DropDownChoice select = new DropDownChoice("actions"
                                        , new PropertyModel(this, "selectedAction"), selectChoice);
                        select.setOutputMarkupId(true);
                        select.add(new AjaxFormComponentUpdatingBehavior("onchange") {

                                @Override
                                protected void onUpdate(AjaxRequestTarget target) {
                                        if ("documents".equals(selectedAction)) {
                                                // open modal window for download documents ??
                                                
                                                // retrieve the invoice
                                                VTodoDealer model = (VTodoDealer) ActionPanel.this.getModelObject();
                                            String uploadFolder  = ((PmaApplication) Application.get()).getUploadFolder();
                                                final String file = uploadFolder + model.getInvoiceFileNamre();
                                                IResourceStream resourceStream = new FileResourceStream(
                                                                new org.apache.wicket.util.file.File(file));
                                                getRequestCycle().setRequestTarget(new ResourceStreamRequestTarget(resourceStream)
                                                {
                                                        public String getFileName()
                                                        {
                                                                return file;
                                                        }
                                                });
                                                
                                        }
                                        target.addComponent(tasksTable);
                        });
                        add(select);
                }

Under the Wicket debug console i can view that content is send to the client, but it does me nothing :( 

May be redirection can help me? Or probably iframe? 

Any hints would be greatly appreciate...

Thanks,

Oleg





Thursday, September 6, 2007, 9:27:33 AM, you wrote:

> * Oleg Taranenko:
>> 
>>  use case: if user select from dropdownlist "retrieve invoice",
>> 
>>  the predefined invoice file (pdf, or doc) should be downloaded to the
>>client as response.
>> 
>>  How is it possible? some play with RequestCycle?

> Examples for serving static data is shown at
> http://wicketstuff.org/wicket13/staticpages/

> Please provide some feedback if you find it useful... or not.
> This is a frequently asked question, and we need to make very
> obvious examples available to everyone.



-- 
Best regards,
 Lobicmailto:[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Download invoice without DownloadLink

2007-09-05 Thread Oleg Taranenko




Hello users,

  use case: if user select from dropdownlist "retrieve invoice", 
  the predefined invoice file (pdf, or doc) should be downloaded to the client as response. 

  How is it possible? some play with RequestCycle?

Thanks for tip.

Cheers,

Oleg.





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent : how can i design get all input of a single form with TextField, ListMultiplechoice and FileUpload components

2007-08-30 Thread Oleg Taranenko




Hello bhupat,

public class MyApplication extends WebApplication
        String rootPath;

        @Override
        protected void init() {
                // TODO Auto-generated method stub
                super.init();
                // rootPath contains what you want.
                rootPath = getServletContext().getRealPath("/");
        }


have I got you?


Thursday, August 30, 2007, 7:18:06 PM, you wrote:

> Hi,
>   Anyone please guide me to fit upload example in Forminput example,
> my requirement is i want a develop

> a single form with following components

> TextField
> ListMultiplechoice
> FileUpload

> i am facing a problem in getting fileupload path data.

> Thanks in advance
> Bhupat



-- 
Best regards,
 Lobicmailto:[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Urgent : how can i design get all input of a single form with TextField, ListMultiplechoice and FileUpload components

2007-08-30 Thread Oleg Taranenko




Hello bhupat,

using FileUploadField component in the form, you can get a its model - FileUpload. This fileUpload variable contains _all_data_ of uploaded file, including file name.

Then you can save it in any path on your server. 

this snippet pasted from upload example:
In the example it is a system temporary directory

                protected void onSubmit()
                {
                        final FileUpload upload = fileUploadField.getFileUpload();
                        if (upload != null)
                        {
                                // Create a new file
                                File newFile = new File(getUploadFolder(), upload.getClientFileName());

                                // Check new file, delete if it allready existed
                                checkFileExists(newFile);
                                try
                                {
                                        // Save to new file
                                        newFile.createNewFile();
                                        upload.writeTo(newFile);

                                        UploadPage.this.info("saved file: " + upload.getClientFileName());
                                }
                                catch (Exception e)
                                {
                                        throw new IllegalStateException("Unable to write file");
                                }
                        }
                }

Cheers,

Oleg


Thursday, August 30, 2007, 7:18:06 PM, you wrote:

bp> Hi,
bp>   Anyone please guide me to fit upload example in Forminput example,
bp> my requirement is i want a develop

bp> a single form with following components

bp> TextField
bp> ListMultiplechoice
bp> FileUpload

bp> i am facing a problem in getting fileupload path data.

bp> Thanks in advance
bp> Bhupat



-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: not able to get selected ListMultipleChoice values

2007-08-30 Thread Oleg Taranenko
Hello bhupat,

you shows only the the top of the iceberg, better show all, what
is under waterline.

This error can be initiated by many reasons. Most likely of
mismatching in you markup and corresponding declared java objects
hierarchy.

Write carefully what you want to expect from you code and also how you
tied to achive. Welcome are code snippet (not full java codebase, but
related to encountered problem), html fragments, exception stack
trace, debug messages...

With this info locating of your errors might brings pleasure.
Short, be more verbose, and people will like you.

Cheers,

Oleg

Thursday, August 30, 2007, 2:10:41 PM, you wrote:

> ERROR - AjaxRequestTarget  - Error while responding to an AJAX
> request: [EMAIL PROTECTED] markupIdToComponent
> [{tabs=[MarkupContainer [Component id = tabs, page = wicket.quickstart.Index,
> path = 0:tabs.AjaxTabbedPanel, isVisible = true, isVersioned = false]]}],
> prependJavascript [[]], appendJavascript [[]]
> wicket.WicketRuntimeException: Exception in rendering component:
> [MarkupContainer [Component id = tagList, page = wicket.quickstart.Index,
> path = 0:tabs:panel:simpleUpload:tagList.ListMultipleChoice, isVisible =
> true, isVersioned = false]]



-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: Alternative to Wicket data binding

2007-08-25 Thread Oleg Taranenko




Hi Igor and Eelco,

Sorry, for interventing in your discussion :)

May java annotations can help us?

Say [EMAIL PROTECTED]/Write
or [EMAIL PROTECTED] or ever to protect all bean.

It would protect the field from accidently access in Wicket models 
without any assumption on set/get functions.

How it lead to additional lag on processing the model, i can't estimate.

Cheers,

Oleg


>> all i asked johan to do was to tweak property resolver to allow access to
>> private stuff. i was under the impression that the property resolver always
>> tries to access the getter/setter first, then the field.

>> half of this thread you are arguing that we shouldnt allow access to private
>> fields/methods and half of it you are arguing that we should but try the
>> getter first, so im pretty confused.

> No, again, I'm arguing to *either* allowing access to all private, or
> don't allow it at all. I am not against private member access per se,
> just want it to be consistent.

> Eelco

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
С уважением,
 Oleg  mailto:[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Ajax version of DropDownChice/Select

2007-08-24 Thread Oleg Taranenko




Hi * *,

I can not find subj neither in wicket nor in extensions codabases.
Must I write it or there is a workaround (AjaxLink?)

Cheers,

Oleg






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: conditional markup change

2007-08-24 Thread Oleg Taranenko
Hello Konstantin,

Your code snippet is from panel constructor, is not it? So far it
executed only first time, by creating page!

Your need explicitly use in the link handler replaceWith() method. See
Component's javadoc.

Cheers,

Oleg.

Friday, August 24, 2007, 8:46:01 AM, you wrote:

> I need to change presentation dynamically depending on
> object status and I can do it with conditionally using
> different panels like this:
> if( getWSSession().getVisit().isSaved( v.getId() ) ){
> add( new VehicleUncompareControl(
> "compareControl", new Model( v ), new Component[]{
> ajaxTarget, VehicleItem.this}));
> } else{
> add( new VehicleCompareControl(
> "compareControl", new Model( v ), new Component[]{
> ajaxTarget, VehicleItem.this}));
> }

> so far so good, BUT, when I click on the AjaxLink
> inside of those panels they change status of the
> component (vehicle), so I would like the item to
> reflect the change - and THAT does not happens. It is
> sort of understandable because component already has
> been created...

> But the question is: How can I do that in Wicket:
> conditionally change markup and see effect of those 
> changes for Ajax updates too?

> Konstantin Ignatyev




> PS: If this is a typical day on planet earth, humans will add
> fifteen million tons of carbon to the atmosphere, destroy 115 square miles of
> tropical rainforest, create seventy-two miles of desert, eliminate
> between forty to one hundred species, erode seventy-one million tons of
> topsoil, add 2,700 tons of CFCs to the stratosphere, and increase their 
> population by 263,000

> Bowers, C.A.  The Culture of Denial:  Why the Environmental
> Movement Needs a Strategy for Reforming Universities and Public Schools.  New
> York:  State University of New York Press, 1997: (4) (5) (p.206)

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: [Wicket-user] Wicket in Action now available through Manning Early Access Program

2007-08-24 Thread Oleg Taranenko

moreover the payment through a paypal account, that withdraws money from card 
emitted by a
russian bank, failed too! :|


Friday, August 24, 2007, 1:36:25 PM, you wrote:

> Well, i had the same bad luck as  India is not in the choice.
> They asked me to get a paypal account

> -swaroop


> On 8/24/07, Gabor Szokoli < [EMAIL PROTECTED]> wrote:
>>
>> On 7/26/07, Martijn Dashorst < [EMAIL PROTECTED]> wrote:
>> > Eelco and I are really happy to announce the availability of our first
>> > two chapters of our forthcoming book "Wicket in Action".
>>
>> Manning does not accept orders from Hungary, where I happen to live and
>> work.
>> Normally we don't bother with such businesses and buy from amazon.com
>> instead, but the online preview of the Wicket book is worth making an
>> exception.
>> Any suggestions?
>>
>>
>> Gabor Szokol
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>



-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: {wicket 1.3 beta 2} AjaxFormComponentUpdatingBehavior broken?

2007-08-23 Thread Oleg Taranenko
Hello Nino,

It seems to be the same issue as i've encountered a week ago.

see thread "Order-Items master detail page" started at 16 august

Possible Solution in you case:

declare
private Phone selectedItem;

in function
protected void onUpdate(AjaxRequestTarget target) {
...
   selectedItem = (Phone) phoneA.getObject();
...
}

And than everythingService.findAllStandardFeatures() (or other function) shoud 
get access to the
 field selectedItem.

Possible you need to create new IDataProvider. (i've just copied &
pasted from Igor's answer)

IDataProvider itemsDataProvider = new idataprovider() {
  count() { if (selected==null) return 0; else return selected.items.size(); }
 iterator() { if (selected==null) { return new EmptyIterator(); } else { return 
selected.items.iterator (); }
}


Cheers,

Oleg.

Thursday, August 23, 2007, 9:08:42 AM, you wrote:

> Hi

> I have a page where theres two dropdownchoices and two panels 
> acordingly. when you click dropdown a and select a new item panel a 
> should be updated to the new item, I've used 
> ajaxformComponentupdatingbehavior( have also tried 
> ajaxformsubmittingbehavior).

> However it seems as the model of the dropdown are never updated, im 
> using compoundpropertymodel (have also tried reverting and just using a
> simple model).

> I just cant figure out whats wrong. Please take a look any hints will be
> appreciated

> http://papernapkin.org/pastebin/view/1386



> Havent had the chance yet to tryout beta 3, not sure if its gone there.

> regards Nino

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: {wicket 1.3 beta 2} AjaxFormComponentUpdatingBehavior broken?

2007-08-23 Thread Oleg Taranenko
Hello Nino,

It seems to be the same issue as i've encountered a week ago.

see thread "Order-Items master detail page" started at 16 august


Possible Solution in you case:

declare anywhere posible in page
private Phone selectedItem;

in function
protected void onUpdate(AjaxRequestTarget target) {
...
   selectedItem = (Phone) phoneA.getObject();
...
}

And than everythingService.findAllStandardFeatures() (or other function) shoud 
get access to the
 field selectedItem.
Possible you need to create your own new IDataProvider.


Cheers,

Oleg.


am 23 August 2007 um 09:08 schrieben Sie:

> Hi

> I have a page where theres two dropdownchoices and two panels 
> acordingly. when you click dropdown a and select a new item panel a 
> should be updated to the new item, I've used 
> ajaxformComponentupdatingbehavior( have also tried 
> ajaxformsubmittingbehavior).

> However it seems as the model of the dropdown are never updated, im 
> using compoundpropertymodel (have also tried reverting and just using a
> simple model).

> I just cant figure out whats wrong. Please take a look any hints will be
> appreciated

> http://papernapkin.org/pastebin/view/1386



> Havent had the chance yet to tryout beta 3, not sure if its gone there.

> regards Nino

> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Mit freundlichen Grüßen
Oleg Taranenko
mailto:[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: Can we do straight print in a java web application?

2007-08-20 Thread Oleg Taranenko
Hello Igor,

Or applet. Right now i've completed prototype project that prints labels on
barcode printer under web application. It uses Java Print Service API
on client side to submit appropriate print jobs. It works with some 
restrictions.

Cheers,

Oleg

Saturday, August 18, 2007, 6:02:41 PM, you wrote:

> i think its a little out of scope of wicket :)

> prob what you would need is a browser plugin

> -igor


> On 8/18/07, Eko S.W. <[EMAIL PROTECTED]> wrote:
>>
>> Dear all,
>>
>> I would like to found out about something : can we do straight print in a
>> java web application?
>> That is, we do not rely on window.print(), because we rely on browser to
>> print them.
>>
>> I have an idea, silly perhaps, that we build another "daemon" that listen
>> to
>> something.
>> That daemon wait, and when printing request from java web application does
>> occur, it will do the printing.
>>
>> Is it applicable?
>> Because as a matter of moving from desktop to web, maybe printing is one
>> aspect that as an application developer, will be of some challenge.
>>
>> Thanks in advance
>>
>> --
>> Best wishes,
>> Eko SW
>> http://swdev.blogs.friendster.com/my_blog/
>>



-- 
Best regards,
 Olegmailto:[EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Order-Items master detail page

2007-08-15 Thread Oleg Taranenko




Hi,

I have the simplest use case, but i'm finally confused, please help.

I have 2 DataViews with ListDataProvider. 
Left dataview shows Orders, right must show order items, when I click on the order number.



I have simple list - Order List and Order Items List:
Both created as DataView with ListDataProviders.
List Provider for items depends on clicked ajax link. 

It seems that IDataProvider static bound to the markup? and cannot be changed 

How i can show order's item in the Items List by click on Ajax Link in Order Lis?

I thought enough add 

- Markup --
                                HomePage.html


    
                
        
                
                        [id]
                        [name]
                
        

        
    



                        HomePage$ItemsPanel.html


        
                
                        [id]
                        [name]
                
        


-- Code --
                                HomePage.java:

public class HomePage extends WebPage {
        
        private Order selected;
        IDataProvider itemsDataProvider = new ListDataProvider(Collections.emptyList()); 
        
        private ItemsPanel itemsWrap;
        
        public HomePage(final PageParameters parameters) {

        IDataProvider orderDataProvider = new ListDataProvider(Order.orderList);
        add (new DataView("orders", orderDataProvider) {

                        @Override
                        protected void populateItem(Item item) {
                                Order order = (Order) item.getModelObject();
                                item.add(new Label("id", order.getId().toString()));
                                final AjaxLink link; 
                                item.add(link = new AjaxLink("alink",new Model(order)) {

                                        @Override
                                        public void onClick(AjaxRequestTarget target) {
                                                counter1++;
                                                selected = (Order) this.getModelObject();
                                              itemsDataProvider = new ListDataProvider(toList(selected.getItems()));
                                                
                                                target.addComponent(c1);
                                        itemsWrap.setVisible(true);
                                                target.addComponent(itemsWrap);
                                        }
                                        
                                });
                                link.add(new Label("name", order.getName()));
                        }
                
        });
        add (itemsWrap = new ItemsPanel("itemsWrap"));
        itemsWrap.setOutputMarkupId(true);
        itemsWrap.setVisible(true);

    }
    
    
/***
 *         Items Panel.
 ***/    
        public class ItemsPanel extends Panel {

                public ItemsPanel(String id) {
                        super(id);
                        add (new DataView("items", itemsDataProvider) {

                                @Override
                                protected void populateItem(Item item) {
                                        OrderItem orderItem = (OrderItem) item.getModelObject();
                                        item.add(new Label("itemid", orderItem.getId().toString()));
                                        item.add(new Label("itemname", orderItem.getOrderId().toString()));
                                }
                        
                });
                
                }
                
        }
    
        public List toList(Set set) {
                if (set == null) {
                        throw new NullPointerException("argument must not be null");
                }
                List result = new ArrayList(set.size());
                result.addAll(set);
                return result;
        }


}

It does not works, order items are not shown at all. :(

It seems like itemsDataProvider is bound static and therefore cannot be used this way... What is the Wicket way in my situation?

Thanks for any tip.


-- 
 Oleg  mailto:[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]