Posts by VictorGrechi • 124 points
12 posts
-
0
votes0
answers41
viewsQ: Infinite Loop Method
I have a method call that is made with <p:remoteCommand /> of Primefaces on my system’s home page. And it works perfectly with some users, but with others it goes through the method in the…
-
3
votes2
answers1165
viewsA: Layout in Alertdialog
Use Layoutinflater to get a View that represents your xml file. LayoutInflater inflater = LayoutInflater.from(getContext()); View view = inflater.inflate(R.layout.main, null, false); From the view,…
-
0
votes1
answer61
viewsA: Edittext with Mask
Try using a Textwatcher and put the hint in your XML. Below is an example of a zip code mask: EditText edtTextCEP = (EditText) findViewById(R.id.edt_txt_cep); TextWatcher textWatcherCep =…
-
0
votes1
answer453
viewsA: How to call a method in Fragment via listview Adapter
You must create an Adapter for your Listview, which you inherit from the Basedapter class: public class MeuAdapter extends BaseAdapter Now within the method getView(), you will instantiate a view…
-
1
votes1
answer96
viewsA: listview Adapter repeats values saved in id
To call the attributes of each item in the list, use Onitemclicklistener in Listview. seuListView.setOnItemClickListener(onCliqueItemLista()); Event: private AdapterView.OnItemClickListener…
androidanswered VictorGrechi 124 -
0
votes1
answer46
viewsA: Fragments and how to pass activitys infections to them
Create a custom Adapter and implement the Serializable interface. To use in Listview I use the Base Adapter: public class MeuAdapter extends BaseAdapter implements Serializable This way, it will be…
androidanswered VictorGrechi 124 -
0
votes1
answer387
viewsA: How to use a Listview inside a Scrollview
Place Listview inside a Linearlayout with fixed height. So you can put the Scroll in all Activity and even with the Scroll of Listview itself.
-
2
votes1
answer64
viewsA: How to place a method value inside a Listview
I created your test vector as List<String> teste = new ArrayList<String>();. Try to create this vector as a class variable and not local, so it can be called in the method generates().…
-
0
votes1
answer499
viewsA: Redirect JSF page
Call a method from your Bean before initializing page 2, make sure the user has filled in the required data on page 1, if not redirect page 1. Using the tags below, page 2 is not reloaded:…
-
0
votes1
answer50
viewsA: Help with data field search - android
The answer depends on your DBMS. I’ll give an example for SQL Server for the 30-day range: SELECT SUM(DIFERENÇA) as somaMes FROM TOTALIZADOR WHERE (NID = 252) AND (DATAHORA BETWEEN DATEADD(day, -30,…
androidanswered VictorGrechi 124 -
0
votes2
answers161
viewsA: Java - parseint()
There are three very simple ways to solve: 1) Add the attribute below in your Edittext and avoid unwanted characters: android:inputType="number" 2) Use the methods of the String class itself:…
-
1
votes1
answer49
viewsQ: Step loading to application index page
I own a commercial application that is with an extremely time consuming login for the user. The connection to the Database to validate user and password, as well as the Spring Security startup take…
jsfasked VictorGrechi 124