0

[Solved]Ask How to Save Combobox item with Wire and Hibernate

asked 2012-12-30 17:36:10 +0800

tombisnis gravatar image tombisnis flag of Indonesia
19 2
http://teko-sulaiman.blog...

updated 2013-05-09 18:09:40 +0800

This is my CODE but not working yet, LOL, help me, thank you.

@Wire("#comboboxWithWire") private Combobox comboboxWithWire; String WithWire;

@Command public void save() { try { TWithWire = comboboxWithWire.getSelectedItem().toString();

            model.setWithWire(TWithWire);

            modelService.save(model);
        } 
    catch (Exception e) 
        {
            // TODO: handle exception
        }               
    }

Zul code like this :

<combobox id="comboboxWithWire" onselect="@command('save')"><comboitem label="My Item Combobox"/></combobox>

Thank you help.

delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-12-30 17:36:10 +0800

Seen: 49 times

Last updated: May 09 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More